blob: f3ffecc179d04c5869d575f51bc0fcc898d458b2 [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 LinkedHashSet<>();
for (Person person : pers<caret>ons) {
names.add(person.getName());
}
}
}