aboutsummaryrefslogtreecommitdiffstats
path: root/bcel-builder
diff options
context:
space:
mode:
authorAndrey Turbanov <turbanoff@gmail.com>2022-04-12 11:22:29 +0300
committerAndrey Turbanov <turbanoff@gmail.com>2022-04-12 11:22:29 +0300
commit1c487b2e0f54eeb4c2630940e7d57c279ba5a032 (patch)
tree0c0d84e75783441de07f4193e003429e64b11550 /bcel-builder
parentcaa2c39be10775a8772a27eea8b9a673dd0bab8d (diff)
downloadaspectj-1c487b2e0f54eeb4c2630940e7d57c279ba5a032.tar.gz
aspectj-1c487b2e0f54eeb4c2630940e7d57c279ba5a032.zip
Remove redundant casts after generics update
Diffstat (limited to 'bcel-builder')
-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) {