mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 18:09:38 +07:00
36 lines
684 B
Java
36 lines
684 B
Java
import javax.annotation.*;
|
|
|
|
@ParametersAreNonnullByDefault
|
|
class Test {
|
|
void foo() {
|
|
Intf i1 = (o) -> {
|
|
if (o == null) {
|
|
System.out.println();
|
|
}
|
|
};
|
|
Intf i2 = (Object o) -> {
|
|
if (o == null) {
|
|
System.out.println();
|
|
}
|
|
};
|
|
Intf i3 = (@Nullable Object o) -> {
|
|
if (o == null) {
|
|
System.out.println();
|
|
}
|
|
};
|
|
IntfNotNull i4 = (Object o) -> {
|
|
if (<warning descr="Condition 'o == null' is always 'false'">o == null</warning>) {
|
|
System.out.println();
|
|
}
|
|
};
|
|
}
|
|
}
|
|
|
|
interface Intf {
|
|
void foo(Object o);
|
|
}
|
|
|
|
@ParametersAreNonnullByDefault
|
|
interface IntfNotNull {
|
|
void foo(Object o);
|
|
} |