commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From l..@apache.org
Subject svn commit: r611481 - /commons/proper/math/trunk/src/test/org/apache/commons/math/ode/DummyStepInterpolatorTest.java
Date Sat, 12 Jan 2008 21:05:49 GMT
Author: luc
Date: Sat Jan 12 13:05:49 2008
New Revision: 611481

URL: http://svn.apache.org/viewvc?rev=611481&view=rev
Log:
removed a serialization warning from findbugs

Modified:
    commons/proper/math/trunk/src/test/org/apache/commons/math/ode/DummyStepInterpolatorTest.java

Modified: commons/proper/math/trunk/src/test/org/apache/commons/math/ode/DummyStepInterpolatorTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/org/apache/commons/math/ode/DummyStepInterpolatorTest.java?rev=611481&r1=611480&r2=611481&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/org/apache/commons/math/ode/DummyStepInterpolatorTest.java
(original)
+++ commons/proper/math/trunk/src/test/org/apache/commons/math/ode/DummyStepInterpolatorTest.java
Sat Jan 12 13:05:49 2008
@@ -103,12 +103,7 @@
          IOException, ClassNotFoundException {
 
     double[] y = { 0.0, 1.0, -2.0 };
-    DummyStepInterpolator interpolator = new DummyStepInterpolator(y, true) {
-      protected void doFinalize()
-        throws DerivativeException {
-          throw new DerivativeException(null);
-      }
-    };
+    AbstractStepInterpolator interpolator = new BadStepInterpolator(y, true);
     interpolator.storeTime(0);
     interpolator.shift();
     interpolator.storeTime(1);
@@ -126,6 +121,20 @@
     }
 
   }
+
+  private static class BadStepInterpolator extends DummyStepInterpolator {
+      public BadStepInterpolator() {
+          super();
+      }
+      public BadStepInterpolator(double[] y, boolean forward) {
+          super(y, forward);
+      }
+      protected void doFinalize()
+      throws DerivativeException {
+          throw new DerivativeException(null);
+      }
+  };
+
 
   public void testSerializationError()
   throws DerivativeException, IntegratorException,



Mime
View raw message