commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From l..@apache.org
Subject svn commit: r1178077 - /commons/proper/math/trunk/src/main/java/org/apache/commons/math/ode/MultistepIntegrator.java
Date Sat, 01 Oct 2011 19:44:52 GMT
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;



Mime
View raw message