diff --git a/src/main/java/org/apache/commons/math3/analysis/integration/gauss/LegendreHighPrecisionRuleFactory.java b/src/main/java/org/apache/commons/math3/analysis/integration/gauss/LegendreHighPrecisionRuleFactory.java index 09c580044..dda844355 100644 --- a/src/main/java/org/apache/commons/math3/analysis/integration/gauss/LegendreHighPrecisionRuleFactory.java +++ b/src/main/java/org/apache/commons/math3/analysis/integration/gauss/LegendreHighPrecisionRuleFactory.java @@ -62,6 +62,8 @@ public class LegendreHighPrecisionRuleFactory extends BaseRuleFactory computeRule(int numberOfPoints) { diff --git a/src/main/java/org/apache/commons/math3/analysis/integration/gauss/LegendreRuleFactory.java b/src/main/java/org/apache/commons/math3/analysis/integration/gauss/LegendreRuleFactory.java index a794acce9..cc3e16270 100644 --- a/src/main/java/org/apache/commons/math3/analysis/integration/gauss/LegendreRuleFactory.java +++ b/src/main/java/org/apache/commons/math3/analysis/integration/gauss/LegendreRuleFactory.java @@ -34,6 +34,8 @@ import org.apache.commons.math3.exception.util.LocalizedFormats; public class LegendreRuleFactory extends BaseRuleFactory { /** * {@inheritDoc} + * + * @throws NotStrictlyPositiveException if {@code numberOfPoints < 1}. */ @Override protected Pair computeRule(int numberOfPoints) {