Replaced "AbstractMap.SimpleEntry" with "Pair" to be Java 5 compliant.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1031581 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gilles Sadowski 2010-11-05 14:27:38 +00:00
parent 5b5e256d97
commit cfce6350fe
1 changed files with 1 additions and 2 deletions

View File

@ -24,7 +24,6 @@ import java.util.List;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.Map;
import java.util.AbstractMap;
import java.util.Collections;
import org.apache.commons.math.MathRuntimeException;
@ -2007,7 +2006,7 @@ public final class MathUtils {
}
yValues[j] = y[i];
}
list.add(new AbstractMap.SimpleEntry<Double, double[]>(x[i], yValues));
list.add(new Pair<Double, double[]>(x[i], yValues));
}
final Comparator<Map.Entry<Double, double[]>> comp