From df328dbd46f70bad1c1979a33201baffaf345e9f Mon Sep 17 00:00:00 2001 From: Luc Maisonobe Date: Sun, 1 Aug 2010 15:36:10 +0000 Subject: [PATCH] removed duplicate strings git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@981248 13f79535-47bb-0310-9956-ffa450edef68 --- .../math/ode/nonstiff/AdamsBashforthIntegrator.java | 7 +++++-- .../commons/math/ode/nonstiff/AdamsMoultonIntegrator.java | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/apache/commons/math/ode/nonstiff/AdamsBashforthIntegrator.java b/src/main/java/org/apache/commons/math/ode/nonstiff/AdamsBashforthIntegrator.java index 2e9ccafd3..88d3a8fa0 100644 --- a/src/main/java/org/apache/commons/math/ode/nonstiff/AdamsBashforthIntegrator.java +++ b/src/main/java/org/apache/commons/math/ode/nonstiff/AdamsBashforthIntegrator.java @@ -140,6 +140,9 @@ import org.apache.commons.math.ode.sampling.StepHandler; */ public class AdamsBashforthIntegrator extends AdamsIntegrator { + /** Integrator method name. */ + private static final String METHOD_NAME = "Adams-Bashforth"; + /** * Build an Adams-Bashforth integrator with the given order and step control parameters. * @param nSteps number of steps of the method excluding the one being computed @@ -156,7 +159,7 @@ public class AdamsBashforthIntegrator extends AdamsIntegrator { final double scalAbsoluteTolerance, final double scalRelativeTolerance) throws IllegalArgumentException { - super("Adams-Bashforth", nSteps, nSteps, minStep, maxStep, + super(METHOD_NAME, nSteps, nSteps, minStep, maxStep, scalAbsoluteTolerance, scalRelativeTolerance); } @@ -176,7 +179,7 @@ public class AdamsBashforthIntegrator extends AdamsIntegrator { final double[] vecAbsoluteTolerance, final double[] vecRelativeTolerance) throws IllegalArgumentException { - super("Adams-Bashforth", nSteps, nSteps, minStep, maxStep, + super(METHOD_NAME, nSteps, nSteps, minStep, maxStep, vecAbsoluteTolerance, vecRelativeTolerance); } diff --git a/src/main/java/org/apache/commons/math/ode/nonstiff/AdamsMoultonIntegrator.java b/src/main/java/org/apache/commons/math/ode/nonstiff/AdamsMoultonIntegrator.java index 684a2e2c1..67c777dd5 100644 --- a/src/main/java/org/apache/commons/math/ode/nonstiff/AdamsMoultonIntegrator.java +++ b/src/main/java/org/apache/commons/math/ode/nonstiff/AdamsMoultonIntegrator.java @@ -157,6 +157,9 @@ import org.apache.commons.math.ode.sampling.StepHandler; */ public class AdamsMoultonIntegrator extends AdamsIntegrator { + /** Integrator method name. */ + private static final String METHOD_NAME = "Adams-Moulton"; + /** * Build an Adams-Moulton integrator with the given order and error control parameters. * @param nSteps number of steps of the method excluding the one being computed @@ -173,7 +176,7 @@ public class AdamsMoultonIntegrator extends AdamsIntegrator { final double scalAbsoluteTolerance, final double scalRelativeTolerance) throws IllegalArgumentException { - super("Adams-Moulton", nSteps, nSteps + 1, minStep, maxStep, + super(METHOD_NAME, nSteps, nSteps + 1, minStep, maxStep, scalAbsoluteTolerance, scalRelativeTolerance); } @@ -193,7 +196,7 @@ public class AdamsMoultonIntegrator extends AdamsIntegrator { final double[] vecAbsoluteTolerance, final double[] vecRelativeTolerance) throws IllegalArgumentException { - super("Adams-Moulton", nSteps, nSteps + 1, minStep, maxStep, + super(METHOD_NAME, nSteps, nSteps + 1, minStep, maxStep, vecAbsoluteTolerance, vecRelativeTolerance); }