mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
IDEA-167942 Migrate to simplified collection factories (JEP 269): support explicit addition chain
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
// "Replace with 'Set.of' call" "true"
|
||||
import java.util.*;
|
||||
|
||||
public class Test {
|
||||
private static final Set<String> MY_SET;
|
||||
|
||||
static {
|
||||
Set<String> set;
|
||||
MY_SET = Set.of("foo", "bar", "xyz");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user