mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-29 08:20:55 +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) {
|
|
}
|
|
}
|
|
} |