From f71a6ee1e98b2c97bff44651a8692c694f26c75d Mon Sep 17 00:00:00 2001 From: Luc Maisonobe Date: Sun, 19 Jul 2009 18:36:46 +0000 Subject: [PATCH] fixed an error identified by findbugs git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@795591 13f79535-47bb-0310-9956-ffa450edef68 --- .../commons/math/ode/nonstiff/AdaptiveStepsizeIntegrator.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/java/org/apache/commons/math/ode/nonstiff/AdaptiveStepsizeIntegrator.java b/src/java/org/apache/commons/math/ode/nonstiff/AdaptiveStepsizeIntegrator.java index cd2ad013e..b49c56dd0 100644 --- a/src/java/org/apache/commons/math/ode/nonstiff/AdaptiveStepsizeIntegrator.java +++ b/src/java/org/apache/commons/math/ode/nonstiff/AdaptiveStepsizeIntegrator.java @@ -108,8 +108,8 @@ public abstract class AdaptiveStepsizeIntegrator this.scalAbsoluteTolerance = 0; this.scalRelativeTolerance = 0; - this.vecAbsoluteTolerance = vecAbsoluteTolerance; - this.vecRelativeTolerance = vecRelativeTolerance; + this.vecAbsoluteTolerance = vecAbsoluteTolerance.clone(); + this.vecRelativeTolerance = vecRelativeTolerance.clone(); resetInternalState();