From cfce6350fe638c0333b6f0f6f1c8cd9534eb8100 Mon Sep 17 00:00:00 2001 From: Gilles Sadowski Date: Fri, 5 Nov 2010 14:27:38 +0000 Subject: [PATCH] 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 --- src/main/java/org/apache/commons/math/util/MathUtils.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/org/apache/commons/math/util/MathUtils.java b/src/main/java/org/apache/commons/math/util/MathUtils.java index 1654a4a41..051e19f3c 100644 --- a/src/main/java/org/apache/commons/math/util/MathUtils.java +++ b/src/main/java/org/apache/commons/math/util/MathUtils.java @@ -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(x[i], yValues)); + list.add(new Pair(x[i], yValues)); } final Comparator> comp