We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb32df0 commit e0e96c4Copy full SHA for e0e96c4
spring-core/src/main/java/org/springframework/util/FilteredIterator.java
@@ -55,17 +55,13 @@ public boolean hasNext() {
55
if (this.nextSet) {
56
return true;
57
}
58
- else {
59
- return setNext();
60
- }
+ return setNext();
61
62
63
@Override
64
public E next() {
65
- if (!this.nextSet) {
66
- if (!setNext()) {
+ if (!this.nextSet && !setNext()) {
67
throw new NoSuchElementException();
68
69
70
this.nextSet = false;
71
Assert.state(this.next != null, "Next should not be null");
0 commit comments