Combined two subsequent if statements, reported by pmd.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1364371 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Thomas Neidhart 2012-07-22 17:23:12 +00:00
parent 8b7f2a69cf
commit 2f013e3746
1 changed files with 7 additions and 9 deletions

View File

@ -845,15 +845,13 @@ public class MillerUpdatingRegression implements UpdatingMultipleLinearRegressio
while (i < nvars) {
l = vorder[i];
for (int j = 0; j < list.length; j++) {
if (l == list[j]) {
if (i > next) {
this.vmove(i, next);
++next;
if (next >= list.length + pos1) {
return 0;
} else {
break;
}
if (l == list[j] && i > next) {
this.vmove(i, next);
++next;
if (next >= list.length + pos1) {
return 0;
} else {
break;
}
}
}