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