mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 17:20:54 +07:00
Before when removing more than one element, nextLeaf was invalid as well. The invalidation check below did not work as parent might still exist (element might be relinked to dummy file) Fixes IDEA-187531 "Add on demand static import" with intervening comment and an empty line breaks code
19 lines
557 B
Plaintext
19 lines
557 B
Plaintext
class Test {
|
|
private double dd1(int index, double compVal, int numDays) {
|
|
double aveSlope = 0;
|
|
|
|
for (int i = 0; condition(index, numDays, i); i++) {
|
|
--index;
|
|
aveSlope = comminSending(index, compVal, aveSlope, i);
|
|
}
|
|
return aveSlope;
|
|
}
|
|
|
|
private double ss2(int index, double compVal, int numDays) {
|
|
double aveSlope = dd1(index, compVal, numDays);
|
|
return aveSlope;
|
|
}
|
|
|
|
private boolean condition(int idx, int n, int i){return false;}
|
|
private double comminSending(int idx, double d, double a, int i){return 0;}
|
|
} |