commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t.@apache.org
Subject svn commit: r1499081 - in /commons/proper/math/trunk/src/test/java/org/apache/commons/math3/fitting: HarmonicFitterTest.java PolynomialFitterTest.java
Date Tue, 02 Jul 2013 19:56:10 GMT
Author: tn
Date: Tue Jul  2 19:56:10 2013
New Revision: 1499081

URL: http://svn.apache.org/r1499081
Log:
Fix some warnings in test code.

Modified:
    commons/proper/math/trunk/src/test/java/org/apache/commons/math3/fitting/HarmonicFitterTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math3/fitting/PolynomialFitterTest.java

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/fitting/HarmonicFitterTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math3/fitting/HarmonicFitterTest.java?rev=1499081&r1=1499080&r2=1499081&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math3/fitting/HarmonicFitterTest.java
(original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math3/fitting/HarmonicFitterTest.java
Tue Jul  2 19:56:10 2013
@@ -179,7 +179,7 @@ public class HarmonicFitterTest {
         // and period 12, and all sample points are taken at integer abscissae
         // so function values all belong to the integer subset {-3, -2, -1, 0,
         // 1, 2, 3}.
-        final HarmonicFitter.ParameterGuesser guesser
-            = new HarmonicFitter.ParameterGuesser(points);
+        @SuppressWarnings("unused")
+        final HarmonicFitter.ParameterGuesser guesser = new HarmonicFitter.ParameterGuesser(points);
     }
 }

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/fitting/PolynomialFitterTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math3/fitting/PolynomialFitterTest.java?rev=1499081&r1=1499080&r2=1499081&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math3/fitting/PolynomialFitterTest.java
(original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math3/fitting/PolynomialFitterTest.java
Tue Jul  2 19:56:10 2013
@@ -135,6 +135,7 @@ public class PolynomialFitterTest {
         final double[] init = new double[] { 0, 0 };
         final int maxEval = 10000; // Trying hard to fit.
 
+        @SuppressWarnings("unused")
         final double[] gn = doMath798(new GaussNewtonOptimizer(checker), maxEval, init);
     }
 



Mime
View raw message