Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/replaceWithBoolean/afterBooleanFalse.java
Ilyas Selimov a117b21680 DFA - added Boolean.TRUE/FALSE.equals() quick fix to unbox boolean nullable variable
GitOrigin-RevId: 45952b11139cf435e218ddd9c3ba57e237230eed
2021-05-13 04:38:40 +00:00

12 lines
251 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 && Boolean.FALSE.equals(flag) : c;
}
}