Fixed CheckStyle warnings.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1364453 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gilles Sadowski 2012-07-22 22:45:15 +00:00
parent 159ca6ebb9
commit f51a7ca5fe
1 changed files with 4 additions and 4 deletions

View File

@ -38,7 +38,7 @@ import org.apache.commons.math3.util.FastMath;
public class IterativeLegendreGaussIntegrator public class IterativeLegendreGaussIntegrator
extends BaseAbstractUnivariateIntegrator { extends BaseAbstractUnivariateIntegrator {
/** Factory that computes the points and weights. */ /** Factory that computes the points and weights. */
private static final GaussIntegratorFactory factory private static final GaussIntegratorFactory FACTORY
= new GaussIntegratorFactory(); = new GaussIntegratorFactory();
/** Number of integration points (per interval). */ /** Number of integration points (per interval). */
private final int numberOfPoints; private final int numberOfPoints;
@ -156,7 +156,7 @@ public class IterativeLegendreGaussIntegrator
// Integrate over each sub-interval [a, b]. // Integrate over each sub-interval [a, b].
final double a = min + i * step; final double a = min + i * step;
final double b = a + step; final double b = a + step;
final GaussIntegrator g = factory.legendreHighPrecision(numberOfPoints, a, b); final GaussIntegrator g = FACTORY.legendreHighPrecision(numberOfPoints, a, b);
sum += g.integrate(f); sum += g.integrate(f);
} }