From 463896f1cceea99ecd1743d34706143eba00ac93 Mon Sep 17 00:00:00 2001 From: Thomas Neidhart Date: Sun, 22 Jul 2012 20:01:12 +0000 Subject: [PATCH] Fix generics warnings in GaussIntegratorFactory. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1364420 13f79535-47bb-0310-9956-ffa450edef68 --- .../integration/gauss/GaussIntegratorFactory.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/apache/commons/math3/analysis/integration/gauss/GaussIntegratorFactory.java b/src/main/java/org/apache/commons/math3/analysis/integration/gauss/GaussIntegratorFactory.java index 3872680e2..df75ccf1a 100644 --- a/src/main/java/org/apache/commons/math3/analysis/integration/gauss/GaussIntegratorFactory.java +++ b/src/main/java/org/apache/commons/math3/analysis/integration/gauss/GaussIntegratorFactory.java @@ -16,6 +16,8 @@ */ package org.apache.commons.math3.analysis.integration.gauss; +import java.math.BigDecimal; + import org.apache.commons.math3.util.Pair; /** @@ -27,9 +29,9 @@ import org.apache.commons.math3.util.Pair; */ public class GaussIntegratorFactory { /** Generator of Gauss-Legendre integrators. */ - private final BaseRuleFactory legendre = new LegendreRuleFactory(); + private final BaseRuleFactory legendre = new LegendreRuleFactory(); /** Generator of Gauss-Legendre integrators. */ - private final BaseRuleFactory legendreHighPrecision = new LegendreHighPrecisionRuleFactory(); + private final BaseRuleFactory legendreHighPrecision = new LegendreHighPrecisionRuleFactory(); /** * Creates an integrator of the given order, and whose call to the @@ -96,7 +98,7 @@ public class GaussIntegratorFactory { * @param numberOfPoints Order of the integration rule. * @return the integration nodes and weights. */ - private static Pair getRule(BaseRuleFactory factory, + private static Pair getRule(BaseRuleFactory factory, int numberOfPoints) { return factory.getRule(numberOfPoints); }