mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 16:39:37 +07:00
11 lines
245 B
Java
11 lines
245 B
Java
// "Replace iteration with bulk 'List.removeAll' call" "true"
|
|
import java.util.*;
|
|
|
|
public class Collect {
|
|
static class Person {}
|
|
|
|
void collectNames(List<Person> persons, Collection<Person> toRemove){
|
|
persons.removeAll(toRemove);
|
|
}
|
|
}
|