mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-19 10:20:56 +07:00
25 lines
502 B
Java
25 lines
502 B
Java
// "Replace iteration with bulk 'Collection.addAll()' call" "false"
|
|
|
|
import java.util.*;
|
|
|
|
public class Main {
|
|
static class MyList extends AbstractCollection<String> {
|
|
@Override
|
|
public Iterator<String> iterator() {
|
|
return Collections.emptyIterator();
|
|
}
|
|
|
|
@Override
|
|
public int size() {
|
|
return 0;
|
|
}
|
|
|
|
@Override
|
|
public boolean addAll(Collection<? extends String> c) {
|
|
for (String e : c) {
|
|
super.a<caret>dd(e);
|
|
}
|
|
return true;
|
|
}
|
|
}
|
|
} |