From 0be9aee8825fee918c941a2ae36ef1f370432182 Mon Sep 17 00:00:00 2001 From: Luc Maisonobe Date: Sat, 1 Oct 2011 19:44:52 +0000 Subject: [PATCH] Replaced obsolete exception. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1178077 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/commons/math/ode/MultistepIntegrator.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/apache/commons/math/ode/MultistepIntegrator.java b/src/main/java/org/apache/commons/math/ode/MultistepIntegrator.java index 0a390bc21..a927aec86 100644 --- a/src/main/java/org/apache/commons/math/ode/MultistepIntegrator.java +++ b/src/main/java/org/apache/commons/math/ode/MultistepIntegrator.java @@ -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 MultistepIntegrator extends AdaptiveStepsizeIntegrator { 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 MultistepIntegrator extends AdaptiveStepsizeIntegrator { /** 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;