mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 18:28:55 +07:00
[java] Report even more unnecessary substring() calls (IDEA-345335)
GitOrigin-RevId: 37b86167b5d2b1cac74365eaadbf3a5ddf792f69
This commit is contained in:
committed by
intellij-monorepo-bot
parent
43bfdf8cf8
commit
e3ccfd0e4a
@@ -0,0 +1,7 @@
|
||||
// "Remove redundant 'substring()' call" "true-preview"
|
||||
class Foo {
|
||||
public void x(String arg) {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append(arg, 2, arg.length());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
// "Remove redundant 'substring()' call" "true-preview"
|
||||
class Foo {
|
||||
public void x(String arg) {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append(arg.subs<caret>tring(2));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user