mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-20 02:15:59 +07:00
15 lines
350 B
Java
15 lines
350 B
Java
import org.jetbrains.annotations.NotNull;
|
|
class Example {
|
|
interface Listener {
|
|
void notify(@NotNull String value);
|
|
}
|
|
|
|
public static void main(String[] args) {
|
|
Listener l = value -> {
|
|
if (<warning descr="Condition 'value != null' is always 'true'">value != null</warning>) {
|
|
System.out.println(value);
|
|
}
|
|
};
|
|
}
|
|
}
|