mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 16:39:37 +07:00
13 lines
290 B
Java
13 lines
290 B
Java
// "Replace with 'Set.of()' call" "true"
|
|
import java.util.*;
|
|
|
|
public class Test {
|
|
public void test2() {
|
|
Set<String> set = new HashSet<>();
|
|
set.add("foo");
|
|
set.add("bar");
|
|
set.add("xyz");
|
|
set = Collections.unmodif<caret>iableSet(set);
|
|
System.out.println(set);
|
|
}
|
|
} |