mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
conflict resolution: missed null checks for diamonds non-physical static methods (IDEA-132534)
This commit is contained in:
+19
@@ -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) {
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user