mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
Java: Infer nullability of extracted method's parameter in presence of a lambda or an anonymous class (IDEA-175727)
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
class C {
|
||||
void foo(@Nullable Object o) {
|
||||
if (o != null)
|
||||
<selection>new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
bar(o);
|
||||
}
|
||||
}</selection>.run();
|
||||
}
|
||||
|
||||
void bar(@NotNull Object o) {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user