]> source.dussan.org Git - aspectj.git/commit
Manual array to collection copy
authorLars Grefer <eclipse@larsgrefer.de>
Sat, 15 Aug 2020 14:06:32 +0000 (16:06 +0200)
committerLars Grefer <eclipse@larsgrefer.de>
Sat, 15 Aug 2020 14:06:32 +0000 (16:06 +0200)
commita85308ec103a69a86a8e02adf02112d472b00568
treea1fe0ef9fe221292774ef280e4d8f0d55cf1555c
parent9cab74717265239e03d1aec53c5ec60a6d7d9718
Manual array to collection copy

Reports the copying of array contents to a collection where each element is added individually using a for loop. Such constructs may be replaced by a call to Collection.addAll(Arrays.asList()) or Collections.addAll().

Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
ajdoc/src/main/java/org/aspectj/tools/ajdoc/Main.java
bcel-builder/src/main/java/org/aspectj/apache/bcel/classfile/JavaClass.java
org.aspectj.ajdt.core/src/main/java/org/aspectj/ajdt/internal/compiler/lookup/AjLookupEnvironment.java
org.aspectj.ajdt.core/src/test/java/org/aspectj/ajdt/internal/compiler/batch/CommandTestCase.java
org.aspectj.ajdt.core/src/test/java/org/aspectj/tools/ajc/Ajc.java
org.aspectj.ajdt.core/src/test/java/org/aspectj/tools/ajc/AjcTestCase.java
org.aspectj.matcher/src/main/java/org/aspectj/weaver/AbstractReferenceTypeDelegate.java
testing/src/test/java/org/aspectj/internal/tools/ant/taskdefs/Ajctest.java
testing/src/test/java/org/aspectj/testing/XMLBasedAjcTestCase.java
testing/src/test/java/org/aspectj/testing/util/options/Values.java
weaver/src/main/java/org/aspectj/weaver/bcel/BcelObjectType.java