mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 18:09:38 +07:00
IDEA-187224 Add inspection for substring with String#length as second param
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
// "Fix all 'Redundant String operation' problems in file" "true"
|
||||
class Foo {
|
||||
void test(String s) {
|
||||
String s1 = s.substring(1);
|
||||
String s2 = s.substring(2, s1.length());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user