Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/unwrapIfStatement/beforeStringConcat.java
Tagir Valeev 55ad5be04b Do not process unknown tokens when simplifying the polyadic expression
Fixes IDEA-246008 "Constant condition" Inspection quick fix removes boolean value from string concatenation when between two values

GitOrigin-RevId: 635e6b5f0b0a102d9c1ddecbbf54315b9b52f2dd
2020-07-20 10:23:20 +00:00

9 lines
161 B
Java

// "Simplify 'b' to true" "true"
class A {
void foo(boolean b) {
if (b) {
String s = "foo" + <caret>b + "bar";
}
}
}