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