commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pste...@apache.org
Subject svn commit: r1178223 - /commons/proper/math/trunk/src/main/java/org/apache/commons/math/stat/Frequency.java
Date Sun, 02 Oct 2011 19:03:49 GMT
Author: psteitz
Date: Sun Oct  2 19:03:49 2011
New Revision: 1178223

URL: http://svn.apache.org/viewvc?rev=1178223&view=rev
Log:
Replaced obsolete exceptions.

Modified:
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/stat/Frequency.java

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/stat/Frequency.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/stat/Frequency.java?rev=1178223&r1=1178222&r2=1178223&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/stat/Frequency.java (original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/stat/Frequency.java Sun
Oct  2 19:03:49 2011
@@ -22,7 +22,7 @@ import java.util.Iterator;
 import java.util.Comparator;
 import java.util.TreeMap;
 
-import org.apache.commons.math.MathRuntimeException;
+import org.apache.commons.math.exception.MathIllegalArgumentException;
 import org.apache.commons.math.exception.util.LocalizedFormats;
 
 /**
@@ -121,7 +121,7 @@ public class Frequency implements Serial
             }
         } catch (ClassCastException ex) {
             //TreeMap will throw ClassCastException if v is not comparable
-            throw MathRuntimeException.createIllegalArgumentException(
+            throw new MathIllegalArgumentException(
                   LocalizedFormats.INSTANCES_NOT_COMPARABLE_TO_EXISTING_VALUES,
                   v.getClass().getName());
         }



Mime
View raw message