mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-13 06:07:04 +07:00
15 lines
312 B
Java
15 lines
312 B
Java
// "Replace iteration with bulk 'Collection.addAll()' call" "true-preview"
|
|
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;
|
|
}
|
|
}
|