mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 06:05:01 +07:00
new inference: most specifics, varargs case
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
import java.util.*;
|
||||
|
||||
class Specificss {
|
||||
{
|
||||
Set<String> JAR_EXTENSIONS = newTroveSet(new ArrayList<String>(), "jar", "zip", "swc", "ane");
|
||||
}
|
||||
|
||||
|
||||
public static <T> HashSet<T> newTroveSet(T... elements) {
|
||||
return newTroveSet(Arrays.asList(elements));
|
||||
}
|
||||
|
||||
public static <T> HashSet<T> newTroveSet(List<T> strategy, T... elements) {
|
||||
return new HashSet<T>();
|
||||
}
|
||||
|
||||
}
|
||||
+4
@@ -156,6 +156,10 @@ public class GraphInferenceHighlightingTest extends LightDaemonAnalyzerTestCase
|
||||
doTest();
|
||||
}
|
||||
|
||||
public void testMostSpecificVarargsCase() throws Exception {
|
||||
doTest();
|
||||
}
|
||||
|
||||
private void doTest() throws Exception {
|
||||
doTest(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user