mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +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:
+18
@@ -0,0 +1,18 @@
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
class C {
|
||||
void foo(@Nullable Object o) {
|
||||
if (o != null) {
|
||||
<selection>Runnable r = new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
bar(o);
|
||||
}
|
||||
};</selection>
|
||||
}
|
||||
}
|
||||
|
||||
void bar(@NotNull Object o) {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user