Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/redundantStringOperation/beforeStripIsEmpty.java
Bas Leijdekkers ed2c73e98c more consistent Java inspection names
GitOrigin-RevId: 5c958dfd8b5f55e9e5bede82be5015c3299dd16e
2021-12-20 10:55:14 +00:00

18 lines
443 B
Java

// "Fix all 'Redundant 'String' operation' problems in file" "true"
class X {
boolean testStrip(String s) {
return s.st<caret>rip().isEmpty();
}
boolean testStripLeading(String s) {
return s.stripLeading().isEmpty();
}
boolean testStripTrailing(String s) {
return s.stripTrailing().isEmpty();
}
boolean testStripWithComments(String s) {
return s./*1*/strip/*2*/(/*3*/)/*4*/./*5*/isEmpty/*6*/(/*7*/)/*8*/;
}
}