Skip to content

Commit 571fc95

Browse files
authored
AvoidBranchingStatementAsLastInLoop (#143)
1 parent 847aa81 commit 571fc95

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

core/src/java/main/org/jaxen/util/PrecedingAxisIterator.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,9 +199,11 @@ public Object next() throws NoSuchElementException
199199
// if this isn't 'self' construct 'descendant-or-self'
200200
stack.add(childrenOrSelf);
201201
childrenOrSelf = childrenOrSelf(result);
202-
continue;
203202
}
204-
return result;
203+
else
204+
{
205+
return result;
206+
}
205207
}
206208
}
207209

0 commit comments

Comments
 (0)