Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/boxPrimitiveInTernary/beforeTwoTernariesBooleanPrimitiveExpected.java
Tagir Valeev 69f9f107a8 [java-inspections] Fix boxing in ternary branches when NPE is possible (IDEA-267511)
GitOrigin-RevId: 95bd6ad84ace485bca5699192c4dfc161397736b
2022-04-04 11:20:51 +00:00

6 lines
225 B
Java

// "Box primitive value in conditional branch" "false"
class Test {
public static void main(String strictArgument) {
boolean strict = strictArgument == null ? false : strictArgument.isEmpty() ? true : <caret>null;
}
}