-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
a:false-positivePMD flags a piece of code that is not problematicPMD flags a piece of code that is not problematic
Description
for (Iterator<E> iterator = iterator(), otherIterator = other.iterator(); iterator.hasNext();) {
E item = iterator.next();
E otherItem = otherIterator.next();
...
}
This code should not give a ForLoopCanBeForeach
warning. At least I can't see another way of going through a couple of collections at the same time with a foreach. Am I wrong?
Metadata
Metadata
Assignees
Labels
a:false-positivePMD flags a piece of code that is not problematicPMD flags a piece of code that is not problematic