mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 15:09:39 +07:00
22 lines
444 B
Java
22 lines
444 B
Java
// "Replace iteration with bulk 'Collection.addAll' call" "true"
|
|
|
|
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;
|
|
}
|
|
|
|
public boolean myAdd(Collection<? extends String> c) {
|
|
this.addAll(c);
|
|
return true;
|
|
}
|
|
}
|
|
} |