mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-25 02:21:17 +07:00
21 lines
412 B
Java
21 lines
412 B
Java
// "Fix all 'Redundant 'String' operation' problems in file" "true"
|
|
class X {
|
|
boolean testStrip(String s) {
|
|
return s.isBlank();
|
|
}
|
|
|
|
boolean testStripLeading(String s) {
|
|
return s.isBlank();
|
|
}
|
|
|
|
boolean testStripTrailing(String s) {
|
|
return s.isBlank();
|
|
}
|
|
|
|
boolean testStripWithComments(String s) {
|
|
/*1*/
|
|
/*2*/
|
|
/*3*/
|
|
return s/*4*/./*5*/isBlank/*6*/(/*7*/)/*8*/;
|
|
}
|
|
} |