Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check whether we have a next element instead of accessing it and catc…
…hing the exception. Exceptions are notoriously slow in Java, so we want to avoid that.
- Loading branch information
1 parent
78a8293
commit 8533431
Showing
1 changed file
with
4 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters