Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/useBulkOperation/beforeAnotherInstance.java
Bas Leijdekkers ea834397dc show method calls with () in "Replace with bulk method call" inspection messages
GitOrigin-RevId: cc40c33ea4729b0faaecefe3e67287ece06090bd
2022-01-31 10:13:13 +00:00

15 lines
304 B
Java

// "Replace iteration with bulk 'Collection.addAll()' call" "true"
import java.util.ArrayList;
import java.util.List;
class Sample {
List<String> foo = new ArrayList<>();
String foo(){
Sample sm = new Sample();
for (String s : foo) {
<caret>sm.foo.add(s);
}
return null;
}
}