]> source.dussan.org Git - aspectj.git/commit
'while' loop replaceable with enhanced 'for' loop
authorLars Grefer <eclipse@larsgrefer.de>
Sat, 8 Aug 2020 01:09:01 +0000 (03:09 +0200)
committerLars Grefer <eclipse@larsgrefer.de>
Sat, 8 Aug 2020 01:09:01 +0000 (03:09 +0200)
commita508fd5315c6330f2057c219aebc35b15d0ea497
treec0ec3cef4e3411f22e5124ae36eba542a35a495a
parent72194b7982ddfa8e9864d0a9934905bb76b90f33
'while' loop replaceable with enhanced 'for' loop

Reports while loops which iterate over collections, and can be replaced with an enhanced for loop (i.e. foreach iteration syntax).

Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
12 files changed:
ajde.core/src/main/java/org/aspectj/ajde/core/internal/AjdeCoreBuildManager.java
ajde/src/main/java/org/aspectj/ajde/internal/LstBuildConfigFileUpdater.java
bcel-builder/src/main/java/org/aspectj/apache/bcel/generic/InstructionList.java
org.aspectj.ajdt.core/src/main/java/org/aspectj/org/eclipse/jdt/core/dom/AjASTConverter.java
org.aspectj.matcher/src/main/java/org/aspectj/weaver/Dump.java
taskdefs/src/main/java/org/aspectj/tools/ant/taskdefs/Ajc2.java
weaver/src/main/java/org/aspectj/weaver/bcel/BcelClassWeaver.java
weaver/src/main/java/org/aspectj/weaver/bcel/BcelShadow.java
weaver/src/main/java/org/aspectj/weaver/bcel/LazyMethodGen.java
weaver/src/main/java/org/aspectj/weaver/bcel/Range.java
weaver/src/main/java/org/aspectj/weaver/bcel/ShadowRange.java
weaver/src/main/java/org/aspectj/weaver/bcel/Utility.java