Closed georgekankava closed 8 years ago
This is a tricky one. Some of the hasNext
implementations do mutate iterator state (yeah, that was a poor design I guess, but that's a thing). So I quite surprised tests are passed. Or maybe we just don't have a proper test to capture that. Anyways, I think I'd be down to merge this for now, but I'd vote for changing the style a bit: add spaces after if
and before {
.
@vkostyukov Changes applied.
Looking good! Thanks @georgekankava!
This pull request is focused on resolving occurrence of Sonar rule squid:S2272 - 'Iterator.next()' methods should throw 'NoSuchElementException'. You can find more information about the issue here: https://dev.eclipse.org/sonar/rules/show/squid:S2272 Please let me know if you have any questions. George Kankava