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 --- util/src/main/java/org/aspectj/util/Reflection.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'util') diff --git a/util/src/main/java/org/aspectj/util/Reflection.java b/util/src/main/java/org/aspectj/util/Reflection.java index 4a69c9273..8b4245636 100644 --- a/util/src/main/java/org/aspectj/util/Reflection.java +++ b/util/src/main/java/org/aspectj/util/Reflection.java @@ -118,9 +118,9 @@ public class Reflection { // not URL, zip, or dir - unsure what to do } } - File[] dirRa = (File[]) dirs.toArray(new File[0]); - File[] libRa = (File[]) libs.toArray(new File[0]); - URL[] urlRa = (URL[]) urls.toArray(new URL[0]); + File[] dirRa = dirs.toArray(new File[0]); + File[] libRa = libs.toArray(new File[0]); + URL[] urlRa = urls.toArray(new URL[0]); runMainInSameVM(urlRa, libRa, dirRa, className, args); } -- cgit v1.2.3