conflict resolution: missed null checks for diamonds non-physical static methods (IDEA-132534)

This commit is contained in:
Anna Kozlova
2014-11-07 11:57:07 +01:00
parent bdac2ab0af
commit cbd8be4b8e
3 changed files with 23 additions and 2 deletions
@@ -0,0 +1,19 @@
class Test {
enum FooBar {Foo, Bar}
void someMethod() {
new Infer<>((FooBar) null, FooBar.class);
new Infer<FooBar>( (FooBar) null, FooBar.class );
}
public class Infer<T extends Enum<T>> {
@SafeVarargs
public Infer(T inst, Class<T> tClass, T... excludes) {
}
@SafeVarargs
public Infer(String inst, Class<T> tClass, T... excludes) {
}
}
}