Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/constantExpression/beforeVeryLongString.java
Tagir Valeev 6cc8936598 Compute constant expression as an inspection; minor improvements
Works for unary operation
Do not suggested if replacement is the same as the original code
Replacement is displayed in the quick-fix name
2018-01-25 15:43:48 +07:00

11 lines
615 B
Java

// "Fix all 'Constant expression can be evaluated' problems in file" "false"
class Test {
void test() {
// Do not suggest to compute for performance reasons
String foo = "The quick brown fox jumps " + 10<caret>0000 + "times" + "over the lazy dog"+
"The quick brown fox jumps " + 100000 + "times" + "over the lazy dog"+
"The quick brown fox jumps " + 100000 + "times" + "over the lazy dog"+
"The quick brown fox jumps " + 100000 + "times" + "over the lazy dog"+
"The quick brown fox jumps " + 100000 + "times" + "over the lazy dog";
}
}