You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ps...@apache.org on 2011/11/26 22:38:27 UTC
svn commit: r1206609 -
/commons/proper/math/trunk/src/main/java/org/apache/commons/math/stat/descriptive/SummaryStatistics.java
Author: psteitz
Date: Sat Nov 26 21:38:26 2011
New Revision: 1206609
URL: http://svn.apache.org/viewvc?rev=1206609&view=rev
Log:
Eliminated deprecated exception.
Modified:
commons/proper/math/trunk/src/main/java/org/apache/commons/math/stat/descriptive/SummaryStatistics.java
Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/stat/descriptive/SummaryStatistics.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/stat/descriptive/SummaryStatistics.java?rev=1206609&r1=1206608&r2=1206609&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/stat/descriptive/SummaryStatistics.java (original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/stat/descriptive/SummaryStatistics.java Sat Nov 26 21:38:26 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.moment.GeometricMean;
@@ -641,9 +641,8 @@ public class SummaryStatistics implement
*/
private void checkEmpty() {
if (n > 0) {
- throw MathRuntimeException.createIllegalStateException(
- LocalizedFormats.VALUES_ADDED_BEFORE_CONFIGURING_STATISTIC,
- n);
+ throw new MathIllegalStateException(
+ LocalizedFormats.VALUES_ADDED_BEFORE_CONFIGURING_STATISTIC, n);
}
}