From 2059461aff27d0937ab313e1787493dfa6d65f1b Mon Sep 17 00:00:00 2001 From: Phil Steitz Date: Sun, 2 Oct 2011 19:03:49 +0000 Subject: [PATCH] Replaced obsolete exceptions. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1178223 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/java/org/apache/commons/math/stat/Frequency.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/apache/commons/math/stat/Frequency.java b/src/main/java/org/apache/commons/math/stat/Frequency.java index 70663839d..7528777eb 100644 --- a/src/main/java/org/apache/commons/math/stat/Frequency.java +++ b/src/main/java/org/apache/commons/math/stat/Frequency.java @@ -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 Serializable { } } 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()); }