Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/useBulkOperation/beforeAddAllLambda.java
T
2022-01-31 10:13:13 +00:00

14 lines
285 B
Java

// "Replace iteration with bulk 'Collection.addAll()' call" "true"
import java.util.*;
public class Collect {
class Person {}
void collectNames(List<Person> persons){
List<Person> names = new ArrayList<>();
persons.forEach(p -> {
names<caret>.add(p);
});
}
}