mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 17:20:54 +07:00
pessimistic approach for now: even if the condition consists of array access only; do not depend on the order of found references GitOrigin-RevId: 0d111aad6b69729404183520d1f4d01cba583a1c
15 lines
323 B
Java
15 lines
323 B
Java
class Foo {
|
|
boolean bar(String[] a) {
|
|
for (int i = 0; i < a.length; i++) {
|
|
if (newMethod(a, i)) return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
private boolean newMethod(String[] a, int i) {
|
|
if (a[i].length() > 3 && i % 3 == 0)
|
|
return true;
|
|
return false;
|
|
}
|
|
}
|