Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/redundantStringOperation/beforeStringSubstringLength.java

7 lines
203 B
Java

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