From 6f4620f270a9d7376f1e3957d46799d2743b6d54 Mon Sep 17 00:00:00 2001 From: Gilles Sadowski Date: Mon, 31 May 2021 03:46:33 +0200 Subject: [PATCH] MATH-1589: Spurious "throws" clauses. --- .../legacy/distribution/EmpiricalDistribution.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/distribution/EmpiricalDistribution.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/distribution/EmpiricalDistribution.java index 4a697bbc5..63da838f0 100644 --- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/distribution/EmpiricalDistribution.java +++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/distribution/EmpiricalDistribution.java @@ -164,7 +164,7 @@ public class EmpiricalDistribution extends AbstractRealDistribution * @param in the input data array * @exception NullArgumentException if in is null */ - public void load(double[] in) throws NullArgumentException { + public void load(double[] in) { DataAdapter da = new ArrayDataAdapter(in); try { da.computeStats(); @@ -190,7 +190,7 @@ public class EmpiricalDistribution extends AbstractRealDistribution * @throws NullArgumentException if url is null * @throws ZeroException if URL contains no data */ - public void load(URL url) throws IOException, NullArgumentException, ZeroException { + public void load(URL url) throws IOException { NullArgumentException.check(url); Charset charset = Charset.forName(FILE_CHARSET); BufferedReader in = @@ -224,7 +224,7 @@ public class EmpiricalDistribution extends AbstractRealDistribution * @throws IOException if an IO error occurs * @throws NullArgumentException if file is null */ - public void load(File file) throws IOException, NullArgumentException { + public void load(File file) throws IOException { NullArgumentException.check(file); Charset charset = Charset.forName(FILE_CHARSET); InputStream is = new FileInputStream(file); @@ -330,7 +330,7 @@ public class EmpiricalDistribution extends AbstractRealDistribution * @param in double[] array holding the data * @throws NullArgumentException if in is null */ - ArrayDataAdapter(double[] in) throws NullArgumentException { + ArrayDataAdapter(double[] in) { super(); NullArgumentException.check(in); inputArray = in; @@ -587,7 +587,7 @@ public class EmpiricalDistribution extends AbstractRealDistribution * @since 3.1 */ @Override - public double inverseCumulativeProbability(final double p) throws OutOfRangeException { + public double inverseCumulativeProbability(final double p) { if (p < 0.0 || p > 1.0) { throw new OutOfRangeException(p, 0, 1); }