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