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 9e36f9794895e954d1da654c9356f98f8a69665d Author: Gary Gregory <[email protected]> AuthorDate: Sat Feb 14 08:59:56 2026 -0500 Javadoc --- src/main/java/org/apache/bcel/generic/SWITCH.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/main/java/org/apache/bcel/generic/SWITCH.java b/src/main/java/org/apache/bcel/generic/SWITCH.java index 9f976bd5..24d64b1f 100644 --- a/src/main/java/org/apache/bcel/generic/SWITCH.java +++ b/src/main/java/org/apache/bcel/generic/SWITCH.java @@ -75,6 +75,13 @@ public final class SWITCH implements CompoundInstruction { private final Select instruction; + /** + * Constructs a SWITCH with default maxGap of 1. + * + * @param match array of match values. + * @param targets the instructions to be branched to for each case. + * @param target the default target. + */ public SWITCH(final int[] match, final InstructionHandle[] targets, final InstructionHandle target) { this(match, targets, target, 1); } @@ -125,6 +132,11 @@ public final class SWITCH implements CompoundInstruction { } } + /** + * Gets the instruction. + * + * @return the instruction. + */ public Instruction getInstruction() { return instruction; }
