From c60cba2ec35d4858ccc330c16de46c74c7966a22 Mon Sep 17 00:00:00 2001 From: Luc Maisonobe Date: Sat, 1 Oct 2011 19:49:51 +0000 Subject: [PATCH] Replaced obsolete exception. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1178081 13f79535-47bb-0310-9956-ffa450edef68 --- .../math/analysis/integration/LegendreGaussIntegrator.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/apache/commons/math/analysis/integration/LegendreGaussIntegrator.java b/src/main/java/org/apache/commons/math/analysis/integration/LegendreGaussIntegrator.java index 36d28b67c..ecc489a9f 100644 --- a/src/main/java/org/apache/commons/math/analysis/integration/LegendreGaussIntegrator.java +++ b/src/main/java/org/apache/commons/math/analysis/integration/LegendreGaussIntegrator.java @@ -16,7 +16,7 @@ */ package org.apache.commons.math.analysis.integration; -import org.apache.commons.math.MathRuntimeException; +import org.apache.commons.math.exception.MathIllegalArgumentException; import org.apache.commons.math.exception.MaxCountExceededException; import org.apache.commons.math.exception.NotStrictlyPositiveException; import org.apache.commons.math.exception.NumberIsTooSmallException; @@ -156,7 +156,7 @@ public class LegendreGaussIntegrator extends UnivariateRealIntegratorImpl { weights = WEIGHTS_5; break; default : - throw MathRuntimeException.createIllegalArgumentException( + throw new MathIllegalArgumentException( LocalizedFormats.N_POINTS_GAUSS_LEGENDRE_INTEGRATOR_NOT_SUPPORTED, n, 2, 5); }