aboutsummaryrefslogtreecommitdiffstats
path: root/bcel-builder/src
diff options
context:
space:
mode:
Diffstat (limited to 'bcel-builder/src')
-rw-r--r--bcel-builder/src/main/java/org/aspectj/apache/bcel/generic/SwitchBuilder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/bcel-builder/src/main/java/org/aspectj/apache/bcel/generic/SwitchBuilder.java b/bcel-builder/src/main/java/org/aspectj/apache/bcel/generic/SwitchBuilder.java
index aad791f42..bd20f44fd 100644
--- a/bcel-builder/src/main/java/org/aspectj/apache/bcel/generic/SwitchBuilder.java
+++ b/bcel-builder/src/main/java/org/aspectj/apache/bcel/generic/SwitchBuilder.java
@@ -84,8 +84,8 @@ public final class SwitchBuilder {
* @param max_gap maximum gap that may between case branches
*/
public SwitchBuilder(int[] match, InstructionHandle[] targets,InstructionHandle target, int max_gap) {
- this.match = (int[])match.clone();
- this.targets = (InstructionHandle[])targets.clone();
+ this.match = match.clone();
+ this.targets = targets.clone();
if((match_length = match.length) < 2) // (almost) empty switch, or just default
if (match.length==0) {