mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
18 lines
443 B
Java
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*/;
|
|
}
|
|
} |