removed an unneeded else

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@574168 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Luc Maisonobe 2007-09-10 08:22:54 +00:00
parent 3c00d3be11
commit cfab1fd925
1 changed files with 3 additions and 4 deletions

View File

@ -573,12 +573,11 @@ public abstract class DirectSearchOptimizer {
return (o2 == null) ? 0 : +1; return (o2 == null) ? 0 : +1;
} else if (o2 == null) { } else if (o2 == null) {
return -1; return -1;
} else { }
double cost1 = ((PointCostPair) o1).cost; double cost1 = ((PointCostPair) o1).cost;
double cost2 = ((PointCostPair) o2).cost; double cost2 = ((PointCostPair) o2).cost;
return (cost1 < cost2) ? -1 : ((o1 == o2) ? 0 : +1); return (cost1 < cost2) ? -1 : ((o1 == o2) ? 0 : +1);
} }
}
}; };
/** Simplex. */ /** Simplex. */