mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 13:39:36 +07:00
19 lines
426 B
Java
19 lines
426 B
Java
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) {
|
|
}
|
|
}
|
|
} |