This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-bcel.git
The following commit(s) were added to refs/heads/master by this push:
new 2983851 Example should use a IllegalArgumentException.
2983851 is described below
commit 298385113cac6e3a4b6e7dd40e0e1c36318c7ffd
Author: Gary Gregory <[email protected]>
AuthorDate: Sat Jan 9 13:15:21 2021 -0500
Example should use a IllegalArgumentException.
---
src/examples/Package.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/examples/Package.java b/src/examples/Package.java
index 6cb9d64..5f1d108 100644
--- a/src/examples/Package.java
+++ b/src/examples/Package.java
@@ -268,7 +268,7 @@ public class Package {
addClassString(clas.substring(1), from);
return;
}
- throw new IOException("Can't recognize class name =" + clas);
+ throw new IllegalArgumentException("Can't recognize class name ="
+ clas);
}
if (!clas.startsWith("java/") && allClasses.get(clas) == null) {