mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
Java: Infer nullability annotations for extracted method's parameters (IDEA-150243)
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
class C {
|
||||
void f(@Nullable Object o, boolean b) {
|
||||
if (b) {
|
||||
o = null;
|
||||
}
|
||||
<selection>g(o);</selection>
|
||||
}
|
||||
|
||||
void g(Object o) {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user