Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/replaceWithBoolean/afterBooleanTrue.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
249 B
Java

// "Replace with 'Boolean.TRUE.equals(flag)'" "true"
import org.jetbrains.annotations.Nullable;
class Test {
boolean test(@Nullable Boolean flag) {
if (Boolean.TRUE.equals(flag)) {
System.out.println("ok");
}
return true;
}
}