Files
openide/java/java-tests/testData/refactoring/methodDuplicatesMisc/ParametersModification.java.after
Tagir Valeev 43b86a988e CodeEditUtil#removeChildren: fixed nextLeaf determination
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
2018-03-03 15:47:21 +07:00

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;}
}