mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-12 04:36:59 +07:00
14 lines
295 B
Java
14 lines
295 B
Java
// "Replace with 'Set.of()' call" "true"
|
|
import java.util.*;
|
|
|
|
public class Test {
|
|
private static final Set<String> MY_SET;
|
|
|
|
static {
|
|
Set<String> set = new HashSet<>();
|
|
set.add("foo");
|
|
set.add("bar");
|
|
set.add("xyz");
|
|
MY_SET = Collections.unmodif<caret>iableSet(set);
|
|
}
|
|
} |