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 31a009fa Javadoc use of IOException 31a009fa is described below commit 31a009fa55ef5fcb0ae93252cc73c8eac844e8b8 Author: Gary David Gregory (Code signing key) <ggreg...@apache.org> AuthorDate: Wed Nov 16 10:47:04 2022 -0500 Javadoc use of IOException --- .../java/org/apache/bcel/classfile/RuntimeInvisibleAnnotations.java | 2 ++ .../org/apache/bcel/classfile/RuntimeInvisibleParameterAnnotations.java | 1 + src/main/java/org/apache/bcel/classfile/RuntimeVisibleAnnotations.java | 2 ++ .../org/apache/bcel/classfile/RuntimeVisibleParameterAnnotations.java | 1 + src/main/java/org/apache/bcel/generic/Instruction.java | 2 ++ src/main/java/org/apache/bcel/util/Class2HTML.java | 1 + 6 files changed, 9 insertions(+) diff --git a/src/main/java/org/apache/bcel/classfile/RuntimeInvisibleAnnotations.java b/src/main/java/org/apache/bcel/classfile/RuntimeInvisibleAnnotations.java index 67abd38a..0cdfa5fd 100644 --- a/src/main/java/org/apache/bcel/classfile/RuntimeInvisibleAnnotations.java +++ b/src/main/java/org/apache/bcel/classfile/RuntimeInvisibleAnnotations.java @@ -28,11 +28,13 @@ import org.apache.bcel.Const; * @since 6.0 */ public class RuntimeInvisibleAnnotations extends Annotations { + /** * @param nameIndex Index pointing to the name <em>Code</em> * @param length Content length in bytes * @param input Input stream * @param constantPool Array of constants + * @throws IOException Thrown when an I/O exception of some sort has occurred. */ public RuntimeInvisibleAnnotations(final int nameIndex, final int length, final DataInput input, final ConstantPool constantPool) throws IOException { super(Const.ATTR_RUNTIME_INVISIBLE_ANNOTATIONS, nameIndex, length, input, constantPool, false); diff --git a/src/main/java/org/apache/bcel/classfile/RuntimeInvisibleParameterAnnotations.java b/src/main/java/org/apache/bcel/classfile/RuntimeInvisibleParameterAnnotations.java index df9a6f9e..9fb84b96 100644 --- a/src/main/java/org/apache/bcel/classfile/RuntimeInvisibleParameterAnnotations.java +++ b/src/main/java/org/apache/bcel/classfile/RuntimeInvisibleParameterAnnotations.java @@ -33,6 +33,7 @@ public class RuntimeInvisibleParameterAnnotations extends ParameterAnnotations { * @param length Content length in bytes * @param input Input stream * @param constantPool Array of constants + * @throws IOException Thrown when an I/O exception of some sort has occurred. */ public RuntimeInvisibleParameterAnnotations(final int nameIndex, final int length, final DataInput input, final ConstantPool constantPool) throws IOException { diff --git a/src/main/java/org/apache/bcel/classfile/RuntimeVisibleAnnotations.java b/src/main/java/org/apache/bcel/classfile/RuntimeVisibleAnnotations.java index 6b75906b..f17dd8e9 100644 --- a/src/main/java/org/apache/bcel/classfile/RuntimeVisibleAnnotations.java +++ b/src/main/java/org/apache/bcel/classfile/RuntimeVisibleAnnotations.java @@ -28,11 +28,13 @@ import org.apache.bcel.Const; * @since 6.0 */ public class RuntimeVisibleAnnotations extends Annotations { + /** * @param nameIndex Index pointing to the name <em>Code</em> * @param length Content length in bytes * @param input Input stream * @param constantPool Array of constants + * @throws IOException Thrown when an I/O exception of some sort has occurred. */ public RuntimeVisibleAnnotations(final int nameIndex, final int length, final DataInput input, final ConstantPool constantPool) throws IOException { super(Const.ATTR_RUNTIME_VISIBLE_ANNOTATIONS, nameIndex, length, input, constantPool, true); diff --git a/src/main/java/org/apache/bcel/classfile/RuntimeVisibleParameterAnnotations.java b/src/main/java/org/apache/bcel/classfile/RuntimeVisibleParameterAnnotations.java index 66989033..299627bc 100644 --- a/src/main/java/org/apache/bcel/classfile/RuntimeVisibleParameterAnnotations.java +++ b/src/main/java/org/apache/bcel/classfile/RuntimeVisibleParameterAnnotations.java @@ -33,6 +33,7 @@ public class RuntimeVisibleParameterAnnotations extends ParameterAnnotations { * @param length Content length in bytes * @param input Input stream * @param constantPool Array of constants + * @throws IOException Thrown when an I/O exception of some sort has occurred. */ public RuntimeVisibleParameterAnnotations(final int nameIndex, final int length, final DataInput input, final ConstantPool constantPool) throws IOException { diff --git a/src/main/java/org/apache/bcel/generic/Instruction.java b/src/main/java/org/apache/bcel/generic/Instruction.java index a37c6214..5946157e 100644 --- a/src/main/java/org/apache/bcel/generic/Instruction.java +++ b/src/main/java/org/apache/bcel/generic/Instruction.java @@ -72,6 +72,7 @@ public abstract class Instruction implements Cloneable { * * @param bytes input stream bytes * @return instruction object being read + * @throws IOException Thrown when an I/O exception of some sort has occurred. * @see InstructionConst#getInstruction(int) */ // @since 6.0 no longer final @@ -477,6 +478,7 @@ public abstract class Instruction implements Cloneable { * Dump instruction as byte code to stream out. * * @param out Output stream + * @throws IOException Thrown when an I/O exception of some sort has occurred. */ public void dump(final DataOutputStream out) throws IOException { out.writeByte(opcode); // Common for all instructions diff --git a/src/main/java/org/apache/bcel/util/Class2HTML.java b/src/main/java/org/apache/bcel/util/Class2HTML.java index 82c12793..65731f10 100644 --- a/src/main/java/org/apache/bcel/util/Class2HTML.java +++ b/src/main/java/org/apache/bcel/util/Class2HTML.java @@ -178,6 +178,7 @@ public class Class2HTML implements Constants { * * @param javaClass The class to write * @param dir The directory to put the files in + * @throws IOException Thrown when an I/O exception of some sort has occurred. */ public Class2HTML(final JavaClass javaClass, final String dir) throws IOException { this(javaClass, dir, StandardCharsets.UTF_8);