Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/streamApiMigration/beforeCollectSelfCollection.java
2014-03-03 13:43:43 +01:00

17 lines
310 B
Java

// "Replace with collect" "true"
import java.util.*;
public abstract class Collect implements Collection<String>{
class Person {
String getName() {
return "";
}
}
void collectNames(List<Person> persons){
for (Person person : pers<caret>ons) {
add(person.getName());
}
}
}