diff options
author | Andrey Turbanov <turbanoff@gmail.com> | 2022-04-13 13:51:39 +0300 |
---|---|---|
committer | Alexander Kriegisch <Alexander@Kriegisch.name> | 2022-04-15 11:00:33 +0700 |
commit | 2091b6d1ded90bfeb29f8d74bd17f05ec8fc983d (patch) | |
tree | 4afc936dbc982b72b5dadddafc8360f6c4436be0 /taskdefs/src | |
parent | 047a93c24f4eef3b2ebf254be9332d4340adbd04 (diff) | |
download | aspectj-2091b6d1ded90bfeb29f8d74bd17f05ec8fc983d.tar.gz aspectj-2091b6d1ded90bfeb29f8d74bd17f05ec8fc983d.zip |
Reduce 'Object' class usage
Diffstat (limited to 'taskdefs/src')
-rw-r--r-- | taskdefs/src/main/java/org/aspectj/tools/ant/taskdefs/AjcCompilerAdapter.java | 3 | ||||
-rw-r--r-- | taskdefs/src/main/java/org/aspectj/tools/ant/taskdefs/AjcTask.java | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/taskdefs/src/main/java/org/aspectj/tools/ant/taskdefs/AjcCompilerAdapter.java b/taskdefs/src/main/java/org/aspectj/tools/ant/taskdefs/AjcCompilerAdapter.java index 0b650a60f..018dd2eb4 100644 --- a/taskdefs/src/main/java/org/aspectj/tools/ant/taskdefs/AjcCompilerAdapter.java +++ b/taskdefs/src/main/java/org/aspectj/tools/ant/taskdefs/AjcCompilerAdapter.java @@ -12,6 +12,7 @@ package org.aspectj.tools.ant.taskdefs; +import org.apache.tools.ant.Task; import org.apache.tools.ant.taskdefs.Javac; import org.apache.tools.ant.taskdefs.compilers.CompilerAdapter; import org.apache.tools.ant.BuildException; @@ -40,7 +41,7 @@ public class AjcCompilerAdapter implements CompilerAdapter { if (null == javac) { throw new IllegalArgumentException("null javac"); } - Object task = javac.getProject().createTask("ajc"); + Task task = javac.getProject().createTask("ajc"); String err = null; if (null == task) { err = "ajc not defined - put ajc taskdef library on classpath"; 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 bf9d80a4c..650fdc4e5 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 @@ -1166,7 +1166,7 @@ public class AjcTask extends MatchingTask { // package-private for testing String[] makeCommand() { if (0 < ignored.size()) { - for (Object o : ignored) { + for (String o : ignored) { logVerbose("ignored: " + o); } } |