mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 09:39:37 +07:00
15 lines
302 B
Java
15 lines
302 B
Java
// "Replace iteration with bulk 'Collection.addAll' call" "true"
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
|
|
class Sample {
|
|
List<String> foo = new ArrayList<>();
|
|
String foo(){
|
|
Sample sm = new Sample();
|
|
for (String s : foo) {
|
|
<caret>sm.foo.add(s);
|
|
}
|
|
return null;
|
|
}
|
|
}
|