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

commit 7f74750f73ea4cd448bdd5adc2813609d57eb708
Author: Gary David Gregory (Code signing key) <ggreg...@apache.org>
AuthorDate: Sun Oct 23 09:26:31 2022 -0400

    More precise internal throws declarations
---
 src/main/java/org/apache/bcel/util/AttributeHTML.java | 5 +++--
 src/main/java/org/apache/bcel/util/Class2HTML.java    | 4 +++-
 src/main/java/org/apache/bcel/util/ConstantHTML.java  | 5 +++--
 src/main/java/org/apache/bcel/util/MethodHTML.java    | 5 +++--
 4 files changed, 12 insertions(+), 7 deletions(-)

diff --git a/src/main/java/org/apache/bcel/util/AttributeHTML.java 
b/src/main/java/org/apache/bcel/util/AttributeHTML.java
index 38701aa7..b297e8dc 100644
--- a/src/main/java/org/apache/bcel/util/AttributeHTML.java
+++ b/src/main/java/org/apache/bcel/util/AttributeHTML.java
@@ -17,8 +17,9 @@
 package org.apache.bcel.util;
 
 import java.io.Closeable;
-import java.io.IOException;
+import java.io.FileNotFoundException;
 import java.io.PrintWriter;
+import java.io.UnsupportedEncodingException;
 import java.nio.charset.Charset;
 
 import org.apache.bcel.Const;
@@ -48,7 +49,7 @@ final class AttributeHTML implements Closeable {
     private final ConstantPool constantPool;
 
     AttributeHTML(final String dir, final String className, final ConstantPool 
constantPool, final ConstantHTML constantHtml, final Charset charset)
-        throws IOException {
+        throws FileNotFoundException, UnsupportedEncodingException {
         this.className = className;
         this.constantPool = constantPool;
         this.constantHtml = constantHtml;
diff --git a/src/main/java/org/apache/bcel/util/Class2HTML.java 
b/src/main/java/org/apache/bcel/util/Class2HTML.java
index 73b0dea1..a63bebae 100644
--- a/src/main/java/org/apache/bcel/util/Class2HTML.java
+++ b/src/main/java/org/apache/bcel/util/Class2HTML.java
@@ -17,8 +17,10 @@
 package org.apache.bcel.util;
 
 import java.io.File;
+import java.io.FileNotFoundException;
 import java.io.IOException;
 import java.io.PrintWriter;
+import java.io.UnsupportedEncodingException;
 import java.nio.charset.Charset;
 import java.nio.charset.StandardCharsets;
 import java.util.HashSet;
@@ -206,7 +208,7 @@ public class Class2HTML implements Constants {
         }
     }
 
-    private void writeMainHTML(final AttributeHTML attributeHtml, final 
Charset charset) throws IOException {
+    private void writeMainHTML(final AttributeHTML attributeHtml, final 
Charset charset) throws FileNotFoundException, UnsupportedEncodingException {
         try (PrintWriter file = new PrintWriter(dir + className + ".html", 
charset.name())) {
             file.println("<HTML>\n" + "<HEAD><TITLE>Documentation for " + 
className + "</TITLE>" + "</HEAD>\n" + "<FRAMESET BORDER=1 cols=\"30%,*\">\n"
                 + "<FRAMESET BORDER=1 rows=\"80%,*\">\n" + "<FRAME 
NAME=\"ConstantPool\" SRC=\"" + className + "_cp.html" + "\"\n 
MARGINWIDTH=\"0\" "
diff --git a/src/main/java/org/apache/bcel/util/ConstantHTML.java 
b/src/main/java/org/apache/bcel/util/ConstantHTML.java
index 2c37fda8..94626a57 100644
--- a/src/main/java/org/apache/bcel/util/ConstantHTML.java
+++ b/src/main/java/org/apache/bcel/util/ConstantHTML.java
@@ -16,8 +16,9 @@
  */
 package org.apache.bcel.util;
 
-import java.io.IOException;
+import java.io.FileNotFoundException;
 import java.io.PrintWriter;
+import java.io.UnsupportedEncodingException;
 import java.nio.charset.Charset;
 
 import org.apache.bcel.Const;
@@ -46,7 +47,7 @@ final class ConstantHTML {
     private final Method[] methods;
 
     ConstantHTML(final String dir, final String className, final String 
classPackage, final Method[] methods, final ConstantPool constantPool,
-        final Charset charset) throws IOException {
+        final Charset charset) throws FileNotFoundException, 
UnsupportedEncodingException {
         this.className = className;
         this.classPackage = classPackage;
         this.constantPool = constantPool;
diff --git a/src/main/java/org/apache/bcel/util/MethodHTML.java 
b/src/main/java/org/apache/bcel/util/MethodHTML.java
index 380dbd2b..cf51978e 100644
--- a/src/main/java/org/apache/bcel/util/MethodHTML.java
+++ b/src/main/java/org/apache/bcel/util/MethodHTML.java
@@ -16,8 +16,9 @@
  */
 package org.apache.bcel.util;
 
-import java.io.IOException;
+import java.io.FileNotFoundException;
 import java.io.PrintWriter;
+import java.io.UnsupportedEncodingException;
 import java.nio.charset.Charset;
 
 import org.apache.bcel.Const;
@@ -39,7 +40,7 @@ final class MethodHTML {
     private final AttributeHTML attributeHtml;
 
     MethodHTML(final String dir, final String className, final Method[] 
methods, final Field[] fields, final ConstantHTML constantHtml,
-        final AttributeHTML attributeHtml, final Charset charset) throws 
IOException {
+        final AttributeHTML attributeHtml, final Charset charset) throws 
FileNotFoundException, UnsupportedEncodingException {
         this.className = className;
         this.attributeHtml = attributeHtml;
         this.constantHtml = constantHtml;

Reply via email to