mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
18 lines
556 B
Java
18 lines
556 B
Java
// "Fix all 'Redundant 'String' operation' problems in file" "true"
|
|
class Foo {
|
|
void test(String s) {
|
|
String s1 = s.substring(1);
|
|
// check merger
|
|
//noinspection SubstringZero
|
|
String sOld = s.substring(0x0);
|
|
//noinspection RedundantStringOperation
|
|
String sOld2 = s.substring(0x0);
|
|
//noinspection StringOperationCanBeSimplified
|
|
String sNew = s.substring(0x0);
|
|
String s2 = s;
|
|
String s3 = s.substring(0, 20);
|
|
/*up until the string length*/
|
|
String s4 = s;
|
|
String s5 = s.substring(0, s.length()-1);
|
|
}
|
|
} |