mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-03 11:47:50 +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
10 lines
216 B
Java
10 lines
216 B
Java
// "Surround with 'if ((b ? null : "foo") != null)'" "true"
|
|
class A {
|
|
void bar(String s) {}
|
|
|
|
void foo(boolean b){
|
|
if ((b ? null : "foo") != null) {
|
|
bar(b ? null : "foo");
|
|
}
|
|
}
|
|
} |