Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/replaceWithBoolean/beforeBooleanFalse.java
Ilyas Selimov 85fd5fb24f DFA - removed smart pointers in the fix, changed naming and tests
GitOrigin-RevId: d136a7fee6bb26e8676d31d57a98f945959b3605
2021-05-14 09:49:42 +00:00

12 lines
256 B
Java

// "Replace with 'Boolean.FALSE.equals(flag)'" "true"
import org.jetbrains.annotations.Nullable;
class Test {
public boolean b;
public boolean c;
boolean test(@Nullable Boolean flag) {
return c ? b && !/*a*/(/*b*/(/*c*/<caret>flag)) : c;
}
}