IDEA-167942 Migrate to simplified collection factories (JEP 269): support explicit addition chain

This commit is contained in:
Tagir Valeev
2017-02-27 10:35:34 +07:00
parent 2dda8819cc
commit f8f7f60fd6
8 changed files with 137 additions and 8 deletions
@@ -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");
}
}