changeset 3090:f8b150f1e339

Only adapt imports to get rid of all "unused import" warnings in the langtools javax packages.
author wmdietl
date Wed, 04 Dec 2013 18:49:50 -0500
parents 113d21b7ced6
children 882808d3b51f
files src/share/classes/com/sun/tools/javac/parser/Scanner.java src/share/classes/javax/annotation/processing/Messager.java src/share/classes/javax/lang/model/element/Element.java src/share/classes/javax/lang/model/type/TypeMirror.java src/share/classes/javax/lang/model/type/TypeVariable.java src/share/classes/javax/lang/model/type/TypeVisitor.java src/share/classes/javax/lang/model/util/Elements.java src/share/classes/javax/lang/model/util/Types.java src/share/classes/javax/tools/JavaCompiler.java src/share/classes/javax/tools/SimpleJavaFileObject.java src/share/classes/javax/tools/StandardJavaFileManager.java
diffstat 11 files changed, 32 insertions(+), 29 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/com/sun/tools/javac/parser/Scanner.java	Wed Dec 04 18:42:11 2013 -0500
+++ b/src/share/classes/com/sun/tools/javac/parser/Scanner.java	Wed Dec 04 18:49:50 2013 -0500
@@ -30,7 +30,6 @@
 import java.util.ArrayList;
 
 import com.sun.tools.javac.util.Position.LineMap;
-import com.sun.tools.javac.parser.JavaTokenizer.*;
 
 import static com.sun.tools.javac.parser.Tokens.*;
 
--- a/src/share/classes/javax/annotation/processing/Messager.java	Wed Dec 04 18:42:11 2013 -0500
+++ b/src/share/classes/javax/annotation/processing/Messager.java	Wed Dec 04 18:49:50 2013 -0500
@@ -25,9 +25,10 @@
 
 package javax.annotation.processing;
 
-import javax.annotation.*;
+import javax.lang.model.element.AnnotationMirror;
+import javax.lang.model.element.AnnotationValue;
+import javax.lang.model.element.Element;
 import javax.tools.Diagnostic;
-import javax.lang.model.element.*;
 
 /**
  * A {@code Messager} provides the way for an annotation processor to
--- a/src/share/classes/javax/lang/model/element/Element.java	Wed Dec 04 18:42:11 2013 -0500
+++ b/src/share/classes/javax/lang/model/element/Element.java	Wed Dec 04 18:49:50 2013 -0500
@@ -25,16 +25,11 @@
 
 package javax.lang.model.element;
 
-
 import java.lang.annotation.Annotation;
-import java.lang.annotation.AnnotationTypeMismatchException;
-import java.lang.annotation.IncompleteAnnotationException;
 import java.util.List;
 import java.util.Set;
 
-import javax.lang.model.type.*;
-import javax.lang.model.util.*;
-
+import javax.lang.model.type.TypeMirror;
 
 /**
  * Represents a program element such as a package, class, or method.
--- a/src/share/classes/javax/lang/model/type/TypeMirror.java	Wed Dec 04 18:42:11 2013 -0500
+++ b/src/share/classes/javax/lang/model/type/TypeMirror.java	Wed Dec 04 18:49:50 2013 -0500
@@ -25,8 +25,6 @@
 
 package javax.lang.model.type;
 
-import java.lang.annotation.Annotation;
-import java.util.List;
 import javax.lang.model.element.*;
 import javax.lang.model.util.Types;
 
--- a/src/share/classes/javax/lang/model/type/TypeVariable.java	Wed Dec 04 18:42:11 2013 -0500
+++ b/src/share/classes/javax/lang/model/type/TypeVariable.java	Wed Dec 04 18:49:50 2013 -0500
@@ -25,11 +25,8 @@
 
 package javax.lang.model.type;
 
-
 import javax.lang.model.element.Element;
 import javax.lang.model.element.TypeParameterElement;
-import javax.lang.model.util.Types;
-
 
 /**
  * Represents a type variable.
--- a/src/share/classes/javax/lang/model/type/TypeVisitor.java	Wed Dec 04 18:42:11 2013 -0500
+++ b/src/share/classes/javax/lang/model/type/TypeVisitor.java	Wed Dec 04 18:49:50 2013 -0500
@@ -25,8 +25,6 @@
 
 package javax.lang.model.type;
 
-import javax.lang.model.element.*;
-
 /**
  * A visitor of types, in the style of the
  * visitor design pattern.  Classes implementing this
--- a/src/share/classes/javax/lang/model/util/Elements.java	Wed Dec 04 18:42:11 2013 -0500
+++ b/src/share/classes/javax/lang/model/util/Elements.java	Wed Dec 04 18:49:50 2013 -0500
@@ -25,13 +25,16 @@
 
 package javax.lang.model.util;
 
-
 import java.util.List;
 import java.util.Map;
 
-import javax.lang.model.element.*;
-import javax.lang.model.type.*;
-
+import javax.lang.model.element.AnnotationMirror;
+import javax.lang.model.element.AnnotationValue;
+import javax.lang.model.element.Element;
+import javax.lang.model.element.ExecutableElement;
+import javax.lang.model.element.Name;
+import javax.lang.model.element.PackageElement;
+import javax.lang.model.element.TypeElement;
 
 /**
  * Utility methods for operating on program elements.
--- a/src/share/classes/javax/lang/model/util/Types.java	Wed Dec 04 18:42:11 2013 -0500
+++ b/src/share/classes/javax/lang/model/util/Types.java	Wed Dec 04 18:49:50 2013 -0500
@@ -25,12 +25,19 @@
 
 package javax.lang.model.util;
 
-import java.lang.annotation.Annotation;
-import java.lang.annotation.AnnotationTypeMismatchException;
-import java.lang.annotation.IncompleteAnnotationException;
 import java.util.List;
-import javax.lang.model.element.*;
-import javax.lang.model.type.*;
+
+import javax.lang.model.element.Element;
+import javax.lang.model.element.TypeElement;
+import javax.lang.model.type.ArrayType;
+import javax.lang.model.type.DeclaredType;
+import javax.lang.model.type.ExecutableType;
+import javax.lang.model.type.NoType;
+import javax.lang.model.type.NullType;
+import javax.lang.model.type.PrimitiveType;
+import javax.lang.model.type.TypeMirror;
+import javax.lang.model.type.TypeKind;
+import javax.lang.model.type.WildcardType;
 
 /**
  * Utility methods for operating on types.
--- a/src/share/classes/javax/tools/JavaCompiler.java	Wed Dec 04 18:42:11 2013 -0500
+++ b/src/share/classes/javax/tools/JavaCompiler.java	Wed Dec 04 18:49:50 2013 -0500
@@ -25,7 +25,6 @@
 
 package javax.tools;
 
-import java.io.File;
 import java.io.Writer;
 import java.nio.charset.Charset;
 import java.util.Locale;
--- a/src/share/classes/javax/tools/SimpleJavaFileObject.java	Wed Dec 04 18:42:11 2013 -0500
+++ b/src/share/classes/javax/tools/SimpleJavaFileObject.java	Wed Dec 04 18:49:50 2013 -0500
@@ -25,12 +25,19 @@
 
 package javax.tools;
 
-import java.io.*;
+import java.io.CharArrayReader;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.OutputStream;
+import java.io.OutputStreamWriter;
+import java.io.Reader;
+import java.io.StringReader;
+import java.io.Writer;
 import java.net.URI;
 import java.nio.CharBuffer;
+
 import javax.lang.model.element.Modifier;
 import javax.lang.model.element.NestingKind;
-import javax.tools.JavaFileObject.Kind;
 
 /**
  * Provides simple implementations for most methods in JavaFileObject.
--- a/src/share/classes/javax/tools/StandardJavaFileManager.java	Wed Dec 04 18:42:11 2013 -0500
+++ b/src/share/classes/javax/tools/StandardJavaFileManager.java	Wed Dec 04 18:49:50 2013 -0500
@@ -27,7 +27,6 @@
 
 import java.io.File;
 import java.io.IOException;
-import java.util.*;
 
 /**
  * File manager based on {@linkplain File java.io.File}.  A common way