Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/redundantStringOperation/beforeStringSubstringLength2.java
Bas Leijdekkers 3d5589bde2 IG: better messages and fixed highlighting for "Redundant 'String' operation" inspection
GitOrigin-RevId: f328b47c3c64b6f078f89fa04f0353ec34d57f24
2022-08-29 22:19:49 +00:00

7 lines
199 B
Java

// "Fix all 'Redundant 'String' operation' problems in file" "true"
class Foo {
void test(String s) {
String s1 = s.substring<caret>(s.length());
String s2 = s.substring(s1.length());
}
}