Files
openide/java/java-tests/testData/refactoring/extractMethod/NotNullArgument3.java

26 lines
520 B
Java

import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
class C {
void f() {
I i = (@Nullable Object o) -> {
if (o != null) {<selection>
if (o instanceof String) {
o = 3;
}
else {
System.out.println(o);
}
g(o);</selection>
}
};
}
void g(@NotNull Object o) {
}
interface I {
void m(Object o);
}
}