mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-05 12:18:27 +07:00
IDEA-296617 GitOrigin-RevId: 03e7b3d6c733e8630e29a5867dc715daf5c1d2a9
16 lines
586 B
Java
16 lines
586 B
Java
// "Fix all 'Redundant 'String' operation' problems in file" "true"
|
|
class X {
|
|
void test(String s, int pos, String s2) {
|
|
if (s.startsWith("xyzt", pos)) { }
|
|
if (s.substring(pos, pos + 5).equals("xyzt")) { }
|
|
if (s.startsWith(s2, pos)) { }
|
|
if (s.startsWith(s2, pos)) { }
|
|
if (s.substring(pos, pos + pos).equals(s2)) { }
|
|
if (s.startsWith("xyzt")) { }
|
|
if (s.startsWith("xyzt", 1)) { }
|
|
if (s.startsWith("xyzt", 1)) { }
|
|
if (s.endsWith("...")) {}
|
|
if (s.endsWith(s2)) {}
|
|
if (s.endsWith("xyzt")) {}
|
|
}
|
|
} |