mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-11 11:36:59 +07:00
13 lines
308 B
Java
13 lines
308 B
Java
// "Replace with 'Set.of()' call" "true"
|
|
import java.util.Collections;
|
|
import java.util.HashSet;
|
|
import java.util.Set;
|
|
|
|
public class Test {
|
|
public static final Set<String> MY_SET = Collections.unmodi<caret>fiableSet(new HashSet<String>() {{
|
|
add("a");
|
|
add("b");
|
|
add("c".toUpperCase());
|
|
}});
|
|
}
|