You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by er...@apache.org on 2021/05/31 01:50:13 UTC
[commons-math] 04/05: MATH-1589: Spurious "throws" clauses.
This is an automated email from the ASF dual-hosted git repository.
erans pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-math.git
commit 6f4620f270a9d7376f1e3957d46799d2743b6d54
Author: Gilles Sadowski <gi...@gmail.com>
AuthorDate: Mon May 31 03:46:33 2021 +0200
MATH-1589: Spurious "throws" clauses.
---
.../math4/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 4a697bb..63da838 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);
}