mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-20 02:15:59 +07:00
18 lines
350 B
Java
18 lines
350 B
Java
import org.jetbrains.annotations.NotNull;
|
|
|
|
abstract class Foo {
|
|
@NotNull
|
|
abstract <T> T get(@NotNull Class<? extends T> type);
|
|
|
|
void foo(Field field) {
|
|
Object value = get(field.getType());
|
|
if (<warning descr="Condition 'value != null' is always 'true'">value != null</warning>) {
|
|
|
|
}
|
|
}
|
|
}
|
|
|
|
interface Field {
|
|
Class<?> getType();
|
|
}
|