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 --- taskdefs/src/main/java/org/aspectj/tools/ant/taskdefs/AjcTask.java | 2 +- taskdefs/src/main/java/org/aspectj/tools/ant/taskdefs/Ajdoc.java | 2 +- .../src/main/java/org/aspectj/tools/ant/taskdefs/compilers/Ajc.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'taskdefs') diff --git a/taskdefs/src/main/java/org/aspectj/tools/ant/taskdefs/AjcTask.java b/taskdefs/src/main/java/org/aspectj/tools/ant/taskdefs/AjcTask.java index 260d16d90..bf9d80a4c 100644 --- a/taskdefs/src/main/java/org/aspectj/tools/ant/taskdefs/AjcTask.java +++ b/taskdefs/src/main/java/org/aspectj/tools/ant/taskdefs/AjcTask.java @@ -1190,7 +1190,7 @@ public class AjcTask extends MatchingTask { ArrayList result = new ArrayList(cmd.extractArguments()); addListArgs(result); - String[] command = (String[]) result.toArray(new String[0]); + String[] command = result.toArray(new String[0]); if (null != commandEditor) { command = commandEditor.editCommand(command); } else if (null != COMMAND_EDITOR) { diff --git a/taskdefs/src/main/java/org/aspectj/tools/ant/taskdefs/Ajdoc.java b/taskdefs/src/main/java/org/aspectj/tools/ant/taskdefs/Ajdoc.java index 1cb525d5f..ba75e9d87 100644 --- a/taskdefs/src/main/java/org/aspectj/tools/ant/taskdefs/Ajdoc.java +++ b/taskdefs/src/main/java/org/aspectj/tools/ant/taskdefs/Ajdoc.java @@ -169,7 +169,7 @@ public class Ajdoc extends MatchingTask { Enumeration e = fileSets.elements(); while (e.hasMoreElements()) { - FileSet fs = (FileSet) e.nextElement(); + FileSet fs = e.nextElement(); if (!fs.hasPatterns() && !fs.hasSelectors()) { fs = (FileSet) fs.clone(); fs.createInclude().setName("**/*.java"); diff --git a/taskdefs/src/main/java/org/aspectj/tools/ant/taskdefs/compilers/Ajc.java b/taskdefs/src/main/java/org/aspectj/tools/ant/taskdefs/compilers/Ajc.java index 5af7b7f42..d06928712 100644 --- a/taskdefs/src/main/java/org/aspectj/tools/ant/taskdefs/compilers/Ajc.java +++ b/taskdefs/src/main/java/org/aspectj/tools/ant/taskdefs/compilers/Ajc.java @@ -137,7 +137,7 @@ public class Ajc extends DefaultCompilerAdapter { argsList.add(args[i]); } } - return (String[])argsList.toArray(new String[0]); + return argsList.toArray(new String[0]); } /** -- cgit v1.2.3