From commits-return-22526-apmail-commons-commits-archive=commons.apache.org@commons.apache.org Sun Oct 2 19:04:11 2011 Return-Path: X-Original-To: apmail-commons-commits-archive@minotaur.apache.org Delivered-To: apmail-commons-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EF47A7D12 for ; Sun, 2 Oct 2011 19:04:10 +0000 (UTC) Received: (qmail 39813 invoked by uid 500); 2 Oct 2011 19:04:10 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 39756 invoked by uid 500); 2 Oct 2011 19:04:10 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 39748 invoked by uid 99); 2 Oct 2011 19:04:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Oct 2011 19:04:10 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Oct 2011 19:04:09 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 87624238890A for ; Sun, 2 Oct 2011 19:03:49 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commits@commons.apache.org From: psteitz@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20111002190349.87624238890A@eris.apache.org> 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()); }