blob: 9a671cbafd0bece7bb594a981e9fc1252285c96f [file] [log] [blame]
// "Replace with collect" "true"
import java.util.*;
public class Collect {
class Person {
String getName() {
return "";
}
}
void collectNames(List<Person> persons){
List<String> names = new ArrayList<>();
for (Person person : pers<caret>ons) {
if (person != null) {
names.add(person.getName());
}
}
}
}