Author: psteitz
Date: Sun Oct  2 16:20:04 2011
New Revision: 1178202

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

Modified:
    
commons/proper/math/trunk/src/main/java/org/apache/commons/math/stat/descriptive/moment/GeometricMean.java

Modified: 
commons/proper/math/trunk/src/main/java/org/apache/commons/math/stat/descriptive/moment/GeometricMean.java
URL: 
http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/stat/descriptive/moment/GeometricMean.java?rev=1178202&r1=1178201&r2=1178202&view=diff
==============================================================================
--- 
commons/proper/math/trunk/src/main/java/org/apache/commons/math/stat/descriptive/moment/GeometricMean.java
 (original)
+++ 
commons/proper/math/trunk/src/main/java/org/apache/commons/math/stat/descriptive/moment/GeometricMean.java
 Sun Oct  2 16:20:04 2011
@@ -18,7 +18,7 @@ package org.apache.commons.math.stat.des
 
 import java.io.Serializable;
 
-import org.apache.commons.math.MathRuntimeException;
+import org.apache.commons.math.exception.MathIllegalStateException;
 import org.apache.commons.math.exception.NullArgumentException;
 import org.apache.commons.math.exception.util.LocalizedFormats;
 import 
org.apache.commons.math.stat.descriptive.AbstractStorelessUnivariateStatistic;
@@ -201,7 +201,7 @@ public class GeometricMean extends Abstr
      */
     private void checkEmpty() {
         if (getN() > 0) {
-            throw MathRuntimeException.createIllegalStateException(
+            throw new MathIllegalStateException(
                     LocalizedFormats.VALUES_ADDED_BEFORE_CONFIGURING_STATISTIC,
                     getN());
         }


Reply via email to