mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 18:09:38 +07:00
31 lines
549 B
Java
31 lines
549 B
Java
import org.jetbrains.annotations.NotNull;
|
|
import org.jetbrains.annotations.Nullable;
|
|
|
|
class C {
|
|
void f() {
|
|
I i = (@Nullable String o) -> {
|
|
if (o != null) {
|
|
newMethod(o);
|
|
}
|
|
return "";
|
|
};
|
|
|
|
}
|
|
|
|
private void newMethod(@NotNull String o) {
|
|
if (o instanceof String) {
|
|
o = "4";
|
|
}
|
|
else {
|
|
System.out.println(o);
|
|
}
|
|
g(o);
|
|
}
|
|
|
|
void g(@NotNull Object o) {
|
|
}
|
|
|
|
interface I<T, R> {
|
|
R m(T t);
|
|
}
|
|
} |