]> source.dussan.org Git - aspectj.git/commitdiff
"organized imports" to eliminate compiler warnings
authoracolyer <acolyer>
Tue, 6 May 2003 12:46:55 +0000 (12:46 +0000)
committeracolyer <acolyer>
Tue, 6 May 2003 12:46:55 +0000 (12:46 +0000)
19 files changed:
ajbrowser/src/org/aspectj/tools/ajbrowser/BrowserManager.java
ajbrowser/src/org/aspectj/tools/ajbrowser/TopFrame.java
ajde/src/org/aspectj/ajde/internal/AspectJBuildManager.java
ajde/src/org/aspectj/ajde/internal/BuildNotifierAdapter.java
ajde/src/org/aspectj/ajde/internal/LstBuildConfigManager.java
ajde/src/org/aspectj/ajde/ui/swing/BrowserViewTreeListener.java
ajde/src/org/aspectj/ajde/ui/swing/CompilerMessage.java
ajde/src/org/aspectj/ajde/ui/swing/GoToLineThread.java
ajde/testsrc/org/aspectj/ajde/BuildConfigurationTests.java
ajde/testsrc/org/aspectj/ajde/CompilerMessagesTest.java
ajde/testsrc/org/aspectj/ajde/StructureModelTest.java
asm/src/org/aspectj/asm/AdviceAssociation.java
asm/src/org/aspectj/asm/InheritanceAssociation.java
asm/src/org/aspectj/asm/IntroductionAssociation.java
asm/src/org/aspectj/asm/ReferenceAssociation.java
asm/src/org/aspectj/asm/StructureNodeFactory.java
bridge/src/org/aspectj/bridge/MessageHandler.java
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java
org.aspectj.ajdt.core/testsrc/org/aspectj/ajdt/internal/core/builder/AjBuildManagerTest.java

index df68d8019ac3441992a704635b87992e928eb1c1..65d113af74e6a5eea72620e0f9fc0cb873256041 100644 (file)
@@ -14,7 +14,6 @@
 
 package org.aspectj.tools.ajbrowser;
 
-import java.io.File;
 import java.io.IOException;
 import java.util.ArrayList;
 import java.util.List;
@@ -24,7 +23,6 @@ import javax.swing.JFrame;
 import org.aspectj.ajde.Ajde;
 import org.aspectj.ajde.BuildConfigManager;
 import org.aspectj.ajde.BuildListener;
-import org.aspectj.ajde.ProjectPropertiesAdapter;
 import org.aspectj.ajde.TaskListManager;
 import org.aspectj.ajde.ui.InvalidResourceException;
 import org.aspectj.ajde.ui.UserPreferencesAdapter;
@@ -33,8 +31,6 @@ import org.aspectj.ajde.ui.swing.AjdeUIManager;
 import org.aspectj.ajde.ui.swing.BasicEditor;
 import org.aspectj.ajde.ui.swing.IconRegistry;
 import org.aspectj.ajde.ui.swing.MultiStructureViewPanel;
-import org.aspectj.util.LangUtil;
-import org.aspectj.util.Reflection;
 
 /**
  * IDE manager for standalone AJDE application.
index 740c6053ccbc33d643ba5027585d1abe7554500e..7e3afb82dc93e60ccfaa9488b2164c863d09f9b4 100644 (file)
@@ -19,27 +19,11 @@ import java.awt.Color;
 import java.awt.Dimension;
 import java.awt.FlowLayout;
 import java.awt.event.ActionEvent;
-import java.awt.event.KeyAdapter;
 import java.awt.event.KeyEvent;
 import java.awt.event.WindowEvent;
 import java.io.File;
-import java.io.IOException;
-
-import javax.swing.AbstractAction;
-import javax.swing.BorderFactory;
-import javax.swing.ImageIcon;
-import javax.swing.JButton;
-import javax.swing.JFileChooser;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JMenu;
-import javax.swing.JMenuBar;
-import javax.swing.JMenuItem;
-import javax.swing.JPanel;
-import javax.swing.JPopupMenu;
-import javax.swing.JSplitPane;
-import javax.swing.JToolBar;
-import javax.swing.KeyStroke;
+
+import javax.swing.*;
 import javax.swing.border.BevelBorder;
 import javax.swing.border.Border;
 import javax.swing.filechooser.FileFilter;
index 2fa636ccb99b5e8604c7ee700394be3b59c5fa8c..d4702fc9a90b81ddc5ef190d103e6c4b8762e48e 100644 (file)
 
 package org.aspectj.ajde.internal;
 
-import java.io.BufferedReader;
-import java.io.File;
-import java.io.IOException;
-import java.io.StringReader;
 import java.util.ArrayList;
 import java.util.Iterator;
 import java.util.Set;
-import java.util.Vector;
-
-import org.aspectj.ajde.Ajde;
-import org.aspectj.ajde.BuildListener;
-import org.aspectj.ajde.BuildManager;
-import org.aspectj.ajde.BuildOptionsAdapter;
-import org.aspectj.ajde.BuildProgressMonitor;
-import org.aspectj.ajde.ProjectPropertiesAdapter;
-import org.aspectj.ajde.TaskListManager;
-import org.aspectj.asm.StructureNode;
-import org.aspectj.bridge.IMessage;
-import org.aspectj.bridge.ISourceLocation;
-import org.aspectj.bridge.Message;
-import org.aspectj.bridge.SourceLocation;
+
+import org.aspectj.ajde.*;
 import org.aspectj.util.ConfigParser;
 
 /**
index 1b309c5d2504bf95badb7e576c97432a621f3f5e..95c490baa44c48a82488a9e200b5b32f0dbd7ef1 100644 (file)
@@ -16,10 +16,6 @@ package org.aspectj.ajde.internal;
 import org.aspectj.ajde.Ajde;
 import org.aspectj.ajde.BuildProgressMonitor;
 import org.aspectj.bridge.IProgressListener;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.runtime.OperationCanceledException;
-import org.eclipse.jdt.internal.compiler.env.ICompilationUnit;
-import org.eclipse.jdt.internal.core.builder.BuildNotifier;
 
 public class BuildNotifierAdapter implements IProgressListener {
 
index 8dacef516543e59df23207e1e7500235f6dc73d2..f6e23cf61ac53bf8a7dcad37db94dacfc35fed10 100644 (file)
@@ -17,11 +17,7 @@ package org.aspectj.ajde.internal;
 import java.io.File;
 import java.io.FileFilter;
 import java.io.FilenameFilter;
-import java.util.ArrayList;
-import java.util.Collections;
-import java.util.Comparator;
-import java.util.Iterator;
-import java.util.List;
+import java.util.*;
 
 import org.aspectj.ajde.Ajde;
 import org.aspectj.ajde.BuildConfigListener;
@@ -31,7 +27,6 @@ import org.aspectj.ajde.ui.BuildConfigNode;
 import org.aspectj.asm.StructureNode;
 import org.aspectj.bridge.IMessage;
 import org.aspectj.bridge.Message;
-import org.aspectj.bridge.MessageUtil;
 import org.aspectj.bridge.SourceLocation;
 import org.aspectj.util.ConfigParser;
 
index e42806bfc6fa892233410e0538ade6d138f9e1fc..2dbc95fa40041713191bee56353bc8b01ad6ed14 100644 (file)
@@ -15,6 +15,7 @@
 package org.aspectj.ajde.ui.swing;
 
 import java.awt.event.ActionEvent;
+import java.awt.event.InputEvent;
 import java.awt.event.MouseEvent;
 import java.awt.event.MouseListener;
 import java.util.ArrayList;
@@ -102,7 +103,7 @@ class BrowserViewTreeListener implements TreeSelectionListener, MouseListener {
      * has been clicked.
      */
     private void maybeShowPopup(MouseEvent e) {
-        if (e.getModifiers() == e.BUTTON3_MASK && tree.getSelectionCount() > 0) {
+        if (e.getModifiers() == InputEvent.BUTTON3_MASK && tree.getSelectionCount() > 0) {
             TreePath[] selectionPaths = tree.getSelectionPaths();
             final List signatures = new ArrayList();
             for (int i = 0; i < selectionPaths.length; i++) {
index 467abcdb530bcd4489c61e21c9b69fe182979c4a..9ca312d83ae877dd238ff6a73ed13f999ac71845 100644 (file)
@@ -15,7 +15,6 @@
 package org.aspectj.ajde.ui.swing;
    
 import org.aspectj.bridge.IMessage;
-import org.aspectj.bridge.ISourceLocation;
 import org.aspectj.util.LangUtil;
 
 /**
index b5976b80d79d3853879b7e19f79790d302cf412d..401b1650c335270432e1bbd2d06033203e00f4f6 100644 (file)
@@ -72,7 +72,7 @@ public class GoToLineThread extends Thread {
 
     private void shortPause() {
         try {
-            this.sleep(100);
+            Thread.sleep(100);
         } catch (InterruptedException e) {
             throw new RuntimeException(e.getMessage());
         }
index e65edea36073acb03284eb01ccc0989669976355..d6c7f10135fab45d48c5de8556d27e3d4f66abbb 100644 (file)
@@ -10,23 +10,22 @@ Adrian Colyer - initial version
 **********************************************************************/
 package org.aspectj.ajde;
 
-import org.aspectj.ajde.internal.CompilerAdapter;
-import org.aspectj.ajde.ui.UserPreferencesAdapter;
-import org.aspectj.ajde.ui.internal.AjcBuildOptions;
-import org.aspectj.ajde.ui.internal.UserPreferencesStore;
-import org.aspectj.ajdt.internal.core.builder.AjBuildConfig;
-import org.aspectj.util.LangUtil;
-import org.eclipse.jdt.internal.compiler.impl.CompilerOptions;
-
 import java.io.File;
 import java.util.HashSet;
 import java.util.List;
 import java.util.Map;
 import java.util.Set;
 
-import junit.framework.AssertionFailedError;
 import junit.framework.TestSuite;
 
+import org.aspectj.ajde.internal.CompilerAdapter;
+import org.aspectj.ajde.ui.UserPreferencesAdapter;
+import org.aspectj.ajde.ui.internal.AjcBuildOptions;
+import org.aspectj.ajde.ui.internal.UserPreferencesStore;
+import org.aspectj.ajdt.internal.core.builder.AjBuildConfig;
+import org.aspectj.util.LangUtil;
+import org.eclipse.jdt.internal.compiler.impl.CompilerOptions;
+
 /**
  * Tests that a correctly populated AjBuildConfig object is created
  * in reponse to the setting in BuildOptionsAdapter and 
index 92174397a6e85168b3cb96886c0f8029d6f4c3af..35e1f46cfff763405fd5d3ac2223a892c8cd345e 100644 (file)
@@ -12,8 +12,6 @@
 
 package org.aspectj.ajde;
 
-import org.aspectj.bridge.MessageUtil;
-
 import java.io.IOException;
 import java.util.List;
 
index fedc151be858df3586e55db8c329d4dbd4953fc5..11babe0c537f515ebd5b782fec2c757835a25763 100644 (file)
@@ -16,11 +16,13 @@ package org.aspectj.ajde;
 import java.io.File;
 import java.io.IOException;
 import java.util.Iterator;
-import java.util.List;
 
 import junit.framework.TestSuite;
 
-import org.aspectj.asm.*;
+import org.aspectj.asm.ModelWalker;
+import org.aspectj.asm.ProgramElementNode;
+import org.aspectj.asm.StructureModel;
+import org.aspectj.asm.StructureNode;
 
 /**
  * @author Mik Kersten
index 842690ea21e85cf3df34103214a35487bb3cab77..0ff16678389f9feb9056adaf92004a6ebfa81a9d 100644 (file)
@@ -14,8 +14,8 @@
 
 package org.aspectj.asm;
 
-import java.util.*;
-import org.aspectj.asm.*;
+import java.util.ArrayList;
+import java.util.List;
 
 /**
  * @author Mik Kersten
index fd3d446d91bdb22a0a49684504e0066371c576f0..dea4bd689fb4d16635035894399b76923c6bf42a 100644 (file)
@@ -14,8 +14,8 @@
 
 package org.aspectj.asm;
 
-import java.util.*;
-import org.aspectj.asm.*;
+import java.util.ArrayList;
+import java.util.List;
 
 /**
  * @author Mik Kersten
index 2d55abb9d48a7548ccd8f25787f6a47b13e7010d..867baa61c7fa0f660c34466ab754d119d46d84c4 100644 (file)
@@ -14,8 +14,8 @@
 
 package org.aspectj.asm;
 
-import java.util.*;
-import org.aspectj.asm.*;
+import java.util.ArrayList;
+import java.util.List;
 
 /**
  * @author Mik Kersten
index 908f78d6ef6fcf66b41337c7832c6a159d124c20..abe53ace4a8a63eedc2e33843960630755490735 100644 (file)
@@ -14,8 +14,8 @@
 
 package org.aspectj.asm;
 
-import java.util.*;
-import org.aspectj.asm.*;
+import java.util.ArrayList;
+import java.util.List;
 
 /**
  * @author Mik Kersten
index 3e5257960a40129de2a2a472d3b7daa29c8b19ab..40428739d0043ae45ed437134cb429f5f4c39d09 100644 (file)
@@ -14,8 +14,8 @@
 
 package org.aspectj.asm;
 
-import java.util.*;
-import org.aspectj.asm.*;
+import java.util.Hashtable;
+import java.util.List;
 
 /**
  * @author Mik Kersten
index bc68a0a435d3a7068dc15e03e20ea1ef4f1aef97..6882306e8a78dc53fcb34485cfdb718c497f8230 100644 (file)
@@ -16,7 +16,6 @@ package org.aspectj.bridge;
 
 import java.util.ArrayList;
 import java.util.Collections;
-import java.util.Comparator;
 import java.util.Iterator;
 import java.util.List;
 
index e5bb62aa7907c5666c20d4f2afbea255a7660566..09fef6dc4be7a974dafa2b7fcc113a2f11d03105 100644 (file)
@@ -15,16 +15,7 @@ package org.aspectj.ajdt.internal.core.builder;
 
 import java.io.File;
 import java.io.IOException;
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.Collections;
-import java.util.Enumeration;
-import java.util.HashMap;
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Locale;
-import java.util.Set;
+import java.util.*;
 import java.util.jar.Attributes;
 import java.util.jar.JarFile;
 import java.util.jar.Manifest;
@@ -37,26 +28,14 @@ import org.aspectj.ajdt.internal.compiler.problem.AjProblemReporter;
 import org.aspectj.asm.ProgramElementNode;
 import org.aspectj.asm.StructureModel;
 import org.aspectj.asm.StructureModelManager;
-import org.aspectj.bridge.AbortException;
-import org.aspectj.bridge.CountingMessageHandler;
-import org.aspectj.bridge.IMessage;
-import org.aspectj.bridge.IMessageHandler;
-import org.aspectj.bridge.IProgressListener;
-import org.aspectj.bridge.Message;
-import org.aspectj.bridge.MessageUtil;
-import org.aspectj.bridge.Version;
-import org.aspectj.weaver.ResolvedTypeX;
+import org.aspectj.bridge.*;
 import org.aspectj.weaver.World;
 import org.aspectj.weaver.bcel.BcelWeaver;
 import org.aspectj.weaver.bcel.BcelWorld;
 import org.aspectj.weaver.bcel.UnwovenClassFile;
 import org.eclipse.jdt.core.compiler.CharOperation;
 import org.eclipse.jdt.core.compiler.IProblem;
-import org.eclipse.jdt.internal.compiler.ClassFile;
-import org.eclipse.jdt.internal.compiler.CompilationResult;
-import org.eclipse.jdt.internal.compiler.DefaultErrorHandlingPolicies;
-import org.eclipse.jdt.internal.compiler.ICompilerRequestor;
-import org.eclipse.jdt.internal.compiler.IProblemFactory;
+import org.eclipse.jdt.internal.compiler.*;
 import org.eclipse.jdt.internal.compiler.batch.CompilationUnit;
 import org.eclipse.jdt.internal.compiler.batch.FileSystem;
 import org.eclipse.jdt.internal.compiler.env.ICompilationUnit;
index 4c97612ca756d7ba14927829f7c52abb7b460950..9f65892a524e863723db3266e985c89b95a7c035 100644 (file)
@@ -16,9 +16,6 @@ import java.io.File;
 import java.io.FileOutputStream;
 import java.io.IOException;
 import java.io.PrintWriter;
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.List;
 
 import junit.framework.TestCase;