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 7dccc9501ab29f7c3499e399ac692988fa321f94
Author: Gary Gregory <[email protected]>
AuthorDate: Sat Jan 10 08:03:21 2026 -0500

    Javadoc
---
 .../org/apache/bcel/generic/CodeExceptionGen.java  | 45 ++++++++++++++--------
 1 file changed, 30 insertions(+), 15 deletions(-)

diff --git a/src/main/java/org/apache/bcel/generic/CodeExceptionGen.java 
b/src/main/java/org/apache/bcel/generic/CodeExceptionGen.java
index af2b3e7a..1d8dc619 100644
--- a/src/main/java/org/apache/bcel/generic/CodeExceptionGen.java
+++ b/src/main/java/org/apache/bcel/generic/CodeExceptionGen.java
@@ -73,7 +73,11 @@ public final class CodeExceptionGen implements 
InstructionTargeter, Cloneable {
         return startPc == ih || endPc == ih || handlerPc == ih;
     }
 
-    /** Gets the type of the Exception to catch, 'null' for ANY. */
+    /**
+     * Gets the type of the Exception to catch, 'null' for ANY.
+     *
+     * @return the type of the Exception to catch, 'null' for ANY.
+     */
     public ObjectType getCatchType() {
         return catchType;
     }
@@ -84,7 +88,8 @@ public final class CodeExceptionGen implements 
InstructionTargeter, Cloneable {
      * This relies on that the instruction list has already been dumped to 
byte code or that the 'setPositions' methods
      * has been called for the instruction list.
      *
-     * @param cp constant pool
+     * @param cp constant pool.
+     * @return the CodeException object.
      */
     public CodeException getCodeException(final ConstantPoolGen cp) {
         return new CodeException(startPc.getPosition(), endPc.getPosition() + 
endPc.getInstruction().getLength(), handlerPc.getPosition(),
@@ -92,55 +97,65 @@ public final class CodeExceptionGen implements 
InstructionTargeter, Cloneable {
     }
 
     /**
-     * @return end of handled region (inclusive)
+     * Gets the end of handled region (inclusive).
+     *
+     * @return end of handled region (inclusive).
      */
     public InstructionHandle getEndPC() {
         return endPc;
     }
 
     /**
-     * @return start of handler
+     * Gets the start of handler.
+     *
+     * @return start of handler.
      */
     public InstructionHandle getHandlerPC() {
         return handlerPc;
     }
 
     /**
-     * @return start of handled region (inclusive)
+     * Gets the start of handled region (inclusive).
+     *
+     * @return start of handled region (inclusive).
      */
     public InstructionHandle getStartPC() {
         return startPc;
     }
 
-    /** Sets the type of the Exception to catch. Set 'null' for ANY. */
+    /**
+     * Sets the type of the Exception to catch. Set 'null' for ANY.
+     *
+     * @param catchType the type of the Exception to catch.
+     */
     public void setCatchType(final ObjectType catchType) {
         this.catchType = catchType;
     }
 
-    /*
-     * Sets end of handler
+    /**
+     * Sets end of handler.
      *
-     * @param endPc End of handled region (inclusive)
+     * @param endPc End of handled region (inclusive).
      */
     public void setEndPC(final InstructionHandle endPc) { // TODO could be 
package-protected?
         BranchInstruction.notifyTarget(this.endPc, endPc, this);
         this.endPc = endPc;
     }
 
-    /*
-     * Sets handler code
+    /**
+     * Sets handler code.
      *
-     * @param handlerPc Start of handler
+     * @param handlerPc Start of handler.
      */
     public void setHandlerPC(final InstructionHandle handlerPc) { // TODO 
could be package-protected?
         BranchInstruction.notifyTarget(this.handlerPc, handlerPc, this);
         this.handlerPc = handlerPc;
     }
 
-    /*
-     * Sets start of handler
+    /**
+     * Sets start of handler.
      *
-     * @param startPc Start of handled region (inclusive)
+     * @param startPc Start of handled region (inclusive).
      */
     public void setStartPC(final InstructionHandle startPc) { // TODO could be 
package-protected?
         BranchInstruction.notifyTarget(this.startPc, startPc, this);

Reply via email to