mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 13:39:36 +07:00
17 lines
350 B
Java
17 lines
350 B
Java
import org.jetbrains.annotations.NotNull;
|
|
import org.jetbrains.annotations.Nullable;
|
|
|
|
class C {
|
|
void foo(@Nullable Object o) {
|
|
while (o != null)
|
|
newMethod(o).run();
|
|
}
|
|
|
|
@NotNull
|
|
private Runnable newMethod(@NotNull Object o) {
|
|
return (Runnable)(() -> bar(o));
|
|
}
|
|
|
|
void bar(@NotNull Object o) {
|
|
}
|
|
} |