Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/replaceWithBoolean/afterBooleanFalse.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

15 lines
289 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) {
/*a*/
/*b*/
/*c*/
return c ? b && Boolean.FALSE.equals(flag) : c;
}
}