From 1c487b2e0f54eeb4c2630940e7d57c279ba5a032 Mon Sep 17 00:00:00 2001 From: Andrey Turbanov Date: Tue, 12 Apr 2022 11:22:29 +0300 Subject: Remove redundant casts after generics update --- .../src/main/java/org/aspectj/apache/bcel/generic/SwitchBuilder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bcel-builder') 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) { -- cgit v1.2.3