mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 08:50:57 +07:00
'collection.addAll(Set.of("x"))'
'collection.addAll(Collections.singletonList("x"))'
GitOrigin-RevId: 4a9185f774f9368fdcb5377eaeddb108b521f174
11 lines
217 B
Java
11 lines
217 B
Java
// "Fix all 'Redundant 'Collection' operation' problems in file" "true"
|
|
import java.util.*;
|
|
|
|
class Test {
|
|
void test(List<Integer> list) {
|
|
list.add(42);
|
|
list.add(42);
|
|
list.add(42);
|
|
list.add(42);
|
|
}
|
|
} |