mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
Java: Don't fold the whole extracted expression - simplified the fix (IDEA-195927)
This commit is contained in:
+19
@@ -0,0 +1,19 @@
|
||||
class C {
|
||||
int x;
|
||||
|
||||
int b(boolean[] b, C[] c, int n) {
|
||||
int i = n;
|
||||
while (i >= 0 && <selection>(b[i] || c[n].x == c[i].x)</selection>) {
|
||||
i--;
|
||||
}
|
||||
return i;
|
||||
}
|
||||
|
||||
int a(boolean[] b, C[] c, int n) {
|
||||
int i = n;
|
||||
while (i < c.length && (b[i] || c[n].x == c[i].x)) {
|
||||
i++;
|
||||
}
|
||||
return i;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user