From 656fa507704573c7dadb46036ddfaa18f6ff6b80 Mon Sep 17 00:00:00 2001 From: wisberg Date: Thu, 13 Feb 2003 05:18:47 +0000 Subject: [PATCH] resolving misc compiler warnings --- .../internal/tools/ant/taskdefs/AJInstaller.java | 2 +- .../aspectj/internal/tools/ant/taskdefs/AJPush.java | 12 +++++++----- .../internal/tools/ant/taskdefs/AntBuilder.java | 4 ++-- .../internal/tools/ant/taskdefs/VersionUptodate.java | 1 - .../org/aspectj/internal/tools/build/BuildSpec.java | 5 ----- .../org/aspectj/internal/tools/build/Builder.java | 1 - 6 files changed, 10 insertions(+), 15 deletions(-) diff --git a/build/src/org/aspectj/internal/tools/ant/taskdefs/AJInstaller.java b/build/src/org/aspectj/internal/tools/ant/taskdefs/AJInstaller.java index 4dd35c4b8..614e60f44 100644 --- a/build/src/org/aspectj/internal/tools/ant/taskdefs/AJInstaller.java +++ b/build/src/org/aspectj/internal/tools/ant/taskdefs/AJInstaller.java @@ -65,7 +65,7 @@ public class AJInstaller extends MatchingTask { protected Copy getCopyTask() { Copy cd = (Copy)project.createTask("copy"); if (null == cd) { - log("project.createTask(\"copy\") failed - direct", project.MSG_VERBOSE); + log("project.createTask(\"copy\") failed - direct", Project.MSG_VERBOSE); cd = new Copy(); cd.setProject(getProject()); } diff --git a/build/src/org/aspectj/internal/tools/ant/taskdefs/AJPush.java b/build/src/org/aspectj/internal/tools/ant/taskdefs/AJPush.java index 4a778cb67..fe6e12b45 100644 --- a/build/src/org/aspectj/internal/tools/ant/taskdefs/AJPush.java +++ b/build/src/org/aspectj/internal/tools/ant/taskdefs/AJPush.java @@ -13,12 +13,14 @@ package org.aspectj.internal.tools.ant.taskdefs; -import org.apache.tools.ant.*; -import org.apache.tools.ant.types.*; -import org.apache.tools.ant.taskdefs.*; -import java.io.*; -import java.util.*; +import org.apache.tools.ant.taskdefs.Mkdir; + +import java.io.File; +import java.io.FileInputStream; +import java.io.FileOutputStream; +import java.io.IOException; import java.text.DecimalFormat; +import java.util.Properties; public class AJPush extends ConditionalTask { private File src; diff --git a/build/src/org/aspectj/internal/tools/ant/taskdefs/AntBuilder.java b/build/src/org/aspectj/internal/tools/ant/taskdefs/AntBuilder.java index 4549d2004..613e71341 100644 --- a/build/src/org/aspectj/internal/tools/ant/taskdefs/AntBuilder.java +++ b/build/src/org/aspectj/internal/tools/ant/taskdefs/AntBuilder.java @@ -713,11 +713,11 @@ class ProjectMessager extends Messager { return true; } public boolean error(String s) { - project.log(s, project.MSG_ERR); + project.log(s, Project.MSG_ERR); return true; } public boolean logException(String context, Throwable thrown) { - project.log(context + Util.renderException(thrown), project.MSG_ERR); + project.log(context + Util.renderException(thrown), Project.MSG_ERR); return true; } diff --git a/build/src/org/aspectj/internal/tools/ant/taskdefs/VersionUptodate.java b/build/src/org/aspectj/internal/tools/ant/taskdefs/VersionUptodate.java index a2ac09ff3..61042c54b 100644 --- a/build/src/org/aspectj/internal/tools/ant/taskdefs/VersionUptodate.java +++ b/build/src/org/aspectj/internal/tools/ant/taskdefs/VersionUptodate.java @@ -13,7 +13,6 @@ package org.aspectj.internal.tools.ant.taskdefs; import org.apache.tools.ant.BuildException; -import org.apache.tools.ant.Project; import org.apache.tools.ant.Task; import java.io.BufferedReader; diff --git a/build/src/org/aspectj/internal/tools/build/BuildSpec.java b/build/src/org/aspectj/internal/tools/build/BuildSpec.java index f5b53c72b..208992cbe 100644 --- a/build/src/org/aspectj/internal/tools/build/BuildSpec.java +++ b/build/src/org/aspectj/internal/tools/build/BuildSpec.java @@ -16,11 +16,6 @@ package org.aspectj.internal.tools.build; import java.io.File; -import java.text.SimpleDateFormat; -import java.util.Arrays; -import java.util.Collections; -import java.util.Date; -import java.util.List; import java.util.Properties; /** diff --git a/build/src/org/aspectj/internal/tools/build/Builder.java b/build/src/org/aspectj/internal/tools/build/Builder.java index 9798ce320..7eddfcfdf 100644 --- a/build/src/org/aspectj/internal/tools/build/Builder.java +++ b/build/src/org/aspectj/internal/tools/build/Builder.java @@ -22,7 +22,6 @@ import java.util.Arrays; import java.util.Iterator; import java.util.List; import java.util.ListIterator; -import java.util.Properties; /** * Template class to build (eclipse) modules (and, weakly, products), -- 2.39.5