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
This commit is contained in:
Thomas Neidhart 2013-07-02 19:56:10 +00:00
parent 7772d89846
commit d0cce453d7
2 changed files with 3 additions and 2 deletions

View File

@ -179,7 +179,7 @@ public class HarmonicFitterTest {
// and period 12, and all sample points are taken at integer abscissae // 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, // so function values all belong to the integer subset {-3, -2, -1, 0,
// 1, 2, 3}. // 1, 2, 3}.
final HarmonicFitter.ParameterGuesser guesser @SuppressWarnings("unused")
= new HarmonicFitter.ParameterGuesser(points); final HarmonicFitter.ParameterGuesser guesser = new HarmonicFitter.ParameterGuesser(points);
} }
} }

View File

@ -135,6 +135,7 @@ public class PolynomialFitterTest {
final double[] init = new double[] { 0, 0 }; final double[] init = new double[] { 0, 0 };
final int maxEval = 10000; // Trying hard to fit. final int maxEval = 10000; // Trying hard to fit.
@SuppressWarnings("unused")
final double[] gn = doMath798(new GaussNewtonOptimizer(checker), maxEval, init); final double[] gn = doMath798(new GaussNewtonOptimizer(checker), maxEval, init);
} }