mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-01 10:48:09 +07:00
9 lines
348 B
Java
9 lines
348 B
Java
// "Fix all 'Redundant String operation' problems in file" "true"
|
|
class X {
|
|
void test(String s) {
|
|
int pos = s.substr<caret>ing(/*1*/10/*2*/)/*3*/.indexOf("foo");
|
|
int posBounded = s.substring(10, 20).indexOf("foo");
|
|
int posChar = s.substring(10).indexOf('f');
|
|
int posIdx = s.substring(10).indexOf('f', 2);
|
|
}
|
|
} |