new inference: most specifics, varargs case

This commit is contained in:
Anna Kozlova
2014-02-25 14:11:25 +01:00
parent 89aefc86f1
commit 6ded813afe
3 changed files with 35 additions and 3 deletions

View File

@@ -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>();
}
}