Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.0.0, 4.0.0
-
None
-
Patch
Description
- Make code more concise
- Fix some check style issues
if (toWalk.get(index).getChildren() != null) { for(Node child : toWalk.get(index).getChildren()) {
Actually, the underlying implementation of getChildren() has to do some real work, so do not throw away the work after checking for null. Simply call once and store the results.