mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-25 02:21:17 +07:00
Fixes duplicating NPE expression are disabled when expression has side-effect (not when it's a method call) Parentheses added to generated code when necessary
8 lines
204 B
Java
8 lines
204 B
Java
// "Surround with 'if ((Math.random() > 0.5 ? null : "foo") != null)'" "false"
|
|
class A {
|
|
void bar(String s) {}
|
|
|
|
void foo(boolean b){
|
|
bar(Math.random() > 0.5 ? null<caret> : "foo");
|
|
}
|
|
} |