commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From er...@apache.org
Subject svn commit: r1031581 - /commons/proper/math/trunk/src/main/java/org/apache/commons/math/util/MathUtils.java
Date Fri, 05 Nov 2010 14:27:39 GMT
Author: erans
Date: Fri Nov  5 14:27:38 2010
New Revision: 1031581

URL: http://svn.apache.org/viewvc?rev=1031581&view=rev
Log:
Replaced "AbstractMap.SimpleEntry" with "Pair" to be Java 5 compliant.

Modified:
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/util/MathUtils.java

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/util/MathUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/util/MathUtils.java?rev=1031581&r1=1031580&r2=1031581&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/util/MathUtils.java (original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/util/MathUtils.java Fri
Nov  5 14:27:38 2010
@@ -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



Mime
View raw message