Replaced obsolete exception.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1178202 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Phil Steitz 2011-10-02 16:20:04 +00:00
parent 4b6960624a
commit 48f14e7769
1 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ package org.apache.commons.math.stat.descriptive.moment;
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 AbstractStorelessUnivariateStatistic implemen
*/
private void checkEmpty() {
if (getN() > 0) {
throw MathRuntimeException.createIllegalStateException(
throw new MathIllegalStateException(
LocalizedFormats.VALUES_ADDED_BEFORE_CONFIGURING_STATISTIC,
getN());
}