You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by tn...@apache.org on 2012/07/22 22:01:13 UTC
svn commit: r1364420 -
/commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/integration/gauss/GaussIntegratorFactory.java
Author: tn
Date: Sun Jul 22 20:01:12 2012
New Revision: 1364420
URL: http://svn.apache.org/viewvc?rev=1364420&view=rev
Log:
Fix generics warnings in GaussIntegratorFactory.
Modified:
commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/integration/gauss/GaussIntegratorFactory.java
Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/integration/gauss/GaussIntegratorFactory.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/integration/gauss/GaussIntegratorFactory.java?rev=1364420&r1=1364419&r2=1364420&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/integration/gauss/GaussIntegratorFactory.java (original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math3/analysis/integration/gauss/GaussIntegratorFactory.java Sun Jul 22 20:01:12 2012
@@ -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.Pai
*/
public class GaussIntegratorFactory {
/** Generator of Gauss-Legendre integrators. */
- private final BaseRuleFactory legendre = new LegendreRuleFactory();
+ private final BaseRuleFactory<Double> legendre = new LegendreRuleFactory();
/** Generator of Gauss-Legendre integrators. */
- private final BaseRuleFactory legendreHighPrecision = new LegendreHighPrecisionRuleFactory();
+ private final BaseRuleFactory<BigDecimal> 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<double[], double[]> getRule(BaseRuleFactory factory,
+ private static Pair<double[], double[]> getRule(BaseRuleFactory<? extends Number> factory,
int numberOfPoints) {
return factory.getRule(numberOfPoints);
}