You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by lu...@apache.org on 2011/10/01 21:44:52 UTC

svn commit: r1178077 - /commons/proper/math/trunk/src/main/java/org/apache/commons/math/ode/MultistepIntegrator.java

Author: luc
Date: Sat Oct  1 19:44:52 2011
New Revision: 1178077

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

Modified:
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/ode/MultistepIntegrator.java

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/ode/MultistepIntegrator.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/ode/MultistepIntegrator.java?rev=1178077&r1=1178076&r2=1178077&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/ode/MultistepIntegrator.java (original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/ode/MultistepIntegrator.java Sat Oct  1 19:44:52 2011
@@ -17,7 +17,7 @@
 
 package org.apache.commons.math.ode;
 
-import org.apache.commons.math.MathRuntimeException;
+import org.apache.commons.math.exception.MathIllegalArgumentException;
 import org.apache.commons.math.exception.MathIllegalStateException;
 import org.apache.commons.math.exception.util.LocalizedFormats;
 import org.apache.commons.math.linear.Array2DRowRealMatrix;
@@ -114,7 +114,7 @@ public abstract class MultistepIntegrato
         super(name, minStep, maxStep, scalAbsoluteTolerance, scalRelativeTolerance);
 
         if (nSteps <= 1) {
-            throw MathRuntimeException.createIllegalArgumentException(
+            throw new MathIllegalArgumentException(
                   LocalizedFormats.INTEGRATION_METHOD_NEEDS_AT_LEAST_TWO_PREVIOUS_POINTS,
                   name);
         }
@@ -390,7 +390,7 @@ public abstract class MultistepIntegrato
 
     /** Marker exception used ONLY to stop the starter integrator after first step. */
     private static class InitializationCompletedMarkerException
-        extends MathRuntimeException {
+        extends RuntimeException {
 
         /** Serializable version identifier. */
         private static final long serialVersionUID = -1914085471038046418L;