mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-20 11:36:16 +07:00
13 lines
229 B
Java
13 lines
229 B
Java
@javax.annotation.concurrent.Immutable
|
|
interface Intf {
|
|
@org.jetbrains.annotations.Nullable String foo();
|
|
}
|
|
|
|
class Usage {
|
|
void bar(Intf i) {
|
|
if (i.foo() != null) {
|
|
System.out.println(i.foo().length());
|
|
}
|
|
}
|
|
|
|
} |