From d0cce453d768c4b5e8537d75b78e58e271845ef2 Mon Sep 17 00:00:00 2001 From: Thomas Neidhart Date: Tue, 2 Jul 2013 19:56:10 +0000 Subject: [PATCH] Fix some warnings in test code. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1499081 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/commons/math3/fitting/HarmonicFitterTest.java | 4 ++-- .../apache/commons/math3/fitting/PolynomialFitterTest.java | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/test/java/org/apache/commons/math3/fitting/HarmonicFitterTest.java b/src/test/java/org/apache/commons/math3/fitting/HarmonicFitterTest.java index 1c457612f..717571ca2 100644 --- a/src/test/java/org/apache/commons/math3/fitting/HarmonicFitterTest.java +++ b/src/test/java/org/apache/commons/math3/fitting/HarmonicFitterTest.java @@ -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); } } diff --git a/src/test/java/org/apache/commons/math3/fitting/PolynomialFitterTest.java b/src/test/java/org/apache/commons/math3/fitting/PolynomialFitterTest.java index 73603cdb9..e9fe61f03 100644 --- a/src/test/java/org/apache/commons/math3/fitting/PolynomialFitterTest.java +++ b/src/test/java/org/apache/commons/math3/fitting/PolynomialFitterTest.java @@ -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); }