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