6381698: Warn of decommissioning of apt

Reviewed-by: jjg
This commit is contained in:
Joe Darcy 2009-07-26 21:27:11 -07:00
parent 604fce4d26
commit 55dc8eb040
113 changed files with 607 additions and 260 deletions

View File

@ -68,7 +68,7 @@ javac.no.jdk.warnings = -XDignore.symbol.file=true
# set the following to -version to verify the versions of javac being used
javac.version.opt =
# in time, there should be no exceptions to -Xlint:all
javac.lint.opts = -Xlint:all -Werror
javac.lint.opts = -Xlint:all,-deprecation -Werror
# options for the <javadoc> task for javac
javadoc.jls3.url=http://java.sun.com/docs/books/jls/

View File

@ -50,11 +50,17 @@ import java.util.Collection;
* annotations of those types. It may freely examine any other program
* elements in the course of its processing.
*
* @deprecated All components of this API have been superseded by the
* standardized annotation processing API. The replacement for the
* functionality of this interface is {@link
* javax.annotation.processing.Processor}.
*
* @author Joseph D. Darcy
* @author Scott Seligman
* @since 1.5
*/
@Deprecated
@SuppressWarnings("deprecation")
public interface AnnotationProcessor {
/**

View File

@ -48,11 +48,17 @@ import com.sun.mirror.util.*;
* provides a simple way to select just the items of interest
* when a method returns a collection of declarations.
*
* @deprecated All components of this API have been superseded by the
* standardized annotation processing API. The replacement for the
* functionality of this interface is {@link
* javax.annotation.processing.ProcessingEnvironment}.
*
* @author Joseph D. Darcy
* @author Scott Seligman
* @since 1.5
*/
@Deprecated
@SuppressWarnings("deprecation")
public interface AnnotationProcessorEnvironment {
/**
@ -87,7 +93,6 @@ public interface AnnotationProcessorEnvironment {
Filer getFiler();
/**
* Returns the declarations of the types specified when the
* annotation processing tool was invoked.

View File

@ -42,11 +42,17 @@ import com.sun.mirror.declaration.AnnotationTypeDeclaration;
* must provide a public no-argument constructor to be used by tools to
* instantiate the factory.
*
* @deprecated All components of this API have been superseded by the
* standardized annotation processing API. The replacement for the
* functionality of this interface is {@link
* javax.annotation.processing.Processor}.
*
* @author Joseph D. Darcy
* @author Scott Seligman
* @since 1.5
*/
@Deprecated
@SuppressWarnings("deprecation")
public interface AnnotationProcessorFactory {
/**

View File

@ -28,8 +28,15 @@ package com.sun.mirror.apt;
/**
* Superinterface for all annotation processor event listeners.
*
* @deprecated All components of this API have been superseded by the
* standardized annotation processing API. This interface has no
* direct analog in the standardized API because the different round
* model renders it unnecessary.
*
* @author Joseph D. Darcy
* @author Scott Seligman
* @since 1.5
*/
@Deprecated
@SuppressWarnings("deprecation")
public interface AnnotationProcessorListener extends java.util.EventListener {}

View File

@ -31,10 +31,16 @@ import java.util.*;
/**
* Utilities to create specialized annotation processors.
*
* @deprecated All components of this API have been superseded by the
* standardized annotation processing API. There is no direct analog
* of the functionality of this class in the standardized API.
*
* @since 1.5
* @author Joseph D. Darcy
* @author Scott Seligman
*/
@Deprecated
@SuppressWarnings("deprecation")
public class AnnotationProcessors {
static class NoOpAP implements AnnotationProcessor {
NoOpAP() {}

View File

@ -51,11 +51,17 @@ import java.io.*;
* be deleted. Any subsequent attempt to create the same file during
* a run will fail.
*
* @deprecated All components of this API have been superseded by the
* standardized annotation processing API. The replacement for the
* functionality of this interface is {@link
* javax.annotation.processing.Filer}.
*
* @author Joseph D. Darcy
* @author Scott Seligman
* @since 1.5
*/
@Deprecated
@SuppressWarnings("deprecation")
public interface Filer {
/**
@ -140,7 +146,13 @@ public interface Filer {
/**
* Locations (subtrees within the file system) where new files are created.
*
* @deprecated All components of this API have been superseded by
* the standardized annotation processing API. The replacement
* for the functionality of this enum is {@link
* javax.tools.StandardLocation}.
*/
@Deprecated
enum Location {
/** The location of new source files. */
SOURCE_TREE,

View File

@ -25,20 +25,24 @@
package com.sun.mirror.apt;
import com.sun.mirror.util.SourcePosition;
/**
* A <tt>Messager</tt> provides the way for
* an annotation processor to report error messages, warnings, and
* other notices.
*
* @deprecated All components of this API have been superseded by the
* standardized annotation processing API. The replacement for the
* functionality of this interface is {@link
* javax.annotation.processing.Messager}.
*
* @author Joseph D. Darcy
* @author Scott Seligman
* @since 1.5
*/
@Deprecated
@SuppressWarnings("deprecation")
public interface Messager {
/**

View File

@ -32,10 +32,17 @@ package com.sun.mirror.apt;
* cannot meaningfully be serialized because all of the annotation
* processing tool's internal state would potentially be needed.
*
* @deprecated All components of this API have been superseded by the
* standardized annotation processing API. This class has no direct
* analog in the standardized API because the different round model
* renders it unnecessary.
*
* @author Joseph D. Darcy
* @author Scott Seligman
* @since 1.5
*/
@Deprecated
@SuppressWarnings("deprecation")
public abstract class RoundCompleteEvent extends java.util.EventObject {
private RoundState rs;

View File

@ -28,10 +28,17 @@ package com.sun.mirror.apt;
/**
* Listener for the completion of a round of annotation processing.
*
* @deprecated All components of this API have been superseded by the
* standardized annotation processing API. This interface has no
* direct analog in the standardized API because the different round
* model renders it unnecessary.
*
* @author Joseph D. Darcy
* @author Scott Seligman
* @since 1.5
*/
@Deprecated
@SuppressWarnings("deprecation")
public interface RoundCompleteListener extends AnnotationProcessorListener {
/**
* Invoked after all processors for a round have run to completion.

View File

@ -28,10 +28,17 @@ package com.sun.mirror.apt;
/**
* Represents the status of a completed round of annotation processing.
*
* @deprecated All components of this API have been superseded by the
* standardized annotation processing API. The replacement for the
* functionality of this interface is {@link
* javax.annotation.processing.RoundEnvironment}.
*
* @author Joseph D. Darcy
* @author Scott Seligman
* @since 1.5
*/
@Deprecated
@SuppressWarnings("deprecation")
public interface RoundState {
/**
* Returns <tt>true</tt> if this was the last round of annotation

View File

@ -0,0 +1,38 @@
/*
* Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Sun designates this
* particular file as subject to the "Classpath" exception as provided
* by Sun in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
/**
* Classes used to communicate information between {@linkplain
* com.sun.mirror.apt.AnnotationProcessor annotation processors} and
* an annotation processing tool.
*
* <p>The {@code apt} tool and its associated API have been superseded
* by the standardized annotation processing API. The replacement for
* the functionality in this package is {@link
* javax.annotation.processing}.
*
* @since 1.5
*/
package com.sun.mirror.apt;

View File

@ -1,42 +0,0 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>
<!--
Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
This code is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License version 2 only, as
published by the Free Software Foundation. Sun designates this
particular file as subject to the "Classpath" exception as provided
by Sun in the LICENSE file that accompanied this code.
This code is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
version 2 for more details (a copy is included in the LICENSE file that
accompanied this code).
You should have received a copy of the GNU General Public License version
2 along with this work; if not, write to the Free Software Foundation,
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
CA 95054 USA or visit www.sun.com if you need additional information or
have any questions.
-->
</head>
<body bgcolor="white">
Classes used to communicate information between
{@linkplain com.sun.mirror.apt.AnnotationProcessor annotation processors}
and an annotation processing tool.
<p>Note that the <code>apt</code> tool and its associated APIs may be
changed or superseded in future j2se releases.
@since 1.5
</body>
</html>

View File

@ -38,11 +38,17 @@ import com.sun.mirror.util.SourcePosition;
* ("<tt>==</tt>"). There is no guarantee that any particular
* annotation will always be represented by the same object.
*
* @deprecated All components of this API have been superseded by the
* standardized annotation processing API. The replacement for the
* functionality of this interface is {@link
* javax.lang.model.element.AnnotationMirror}.
*
* @author Joseph D. Darcy
* @author Scott Seligman
* @since 1.5
*/
@Deprecated
@SuppressWarnings("deprecation")
public interface AnnotationMirror {
/**

View File

@ -32,11 +32,17 @@ import java.util.Collection;
/**
* Represents the declaration of an annotation type.
*
* @deprecated All components of this API have been superseded by the
* standardized annotation processing API. The replacement for the
* functionality of this interface is included in {@link
* javax.lang.model.element.TypeElement}.
*
* @author Joseph D. Darcy
* @author Scott Seligman
* @since 1.5
*/
@Deprecated
@SuppressWarnings("deprecation")
public interface AnnotationTypeDeclaration extends InterfaceDeclaration {
/**

View File

@ -29,11 +29,17 @@ package com.sun.mirror.declaration;
/**
* Represents an element of an annotation type.
*
* @deprecated All components of this API have been superseded by the
* standardized annotation processing API. The replacement for the
* functionality of this interface is included in {@link
* javax.lang.model.element.ExecutableElement}.
*
* @author Joe Darcy
* @author Scott Seligman
* @since 1.5
*/
@Deprecated
@SuppressWarnings("deprecation")
public interface AnnotationTypeElementDeclaration extends MethodDeclaration {
/**

View File

@ -30,11 +30,17 @@ import com.sun.mirror.util.SourcePosition;
/**
* Represents a value of an annotation type element.
*
* @deprecated All components of this API have been superseded by the
* standardized annotation processing API. The replacement for the
* functionality of this interface is {@link
* javax.lang.model.element.AnnotationValue}.
*
* @author Joseph D. Darcy
* @author Scott Seligman
* @since 1.5
*/
@Deprecated
@SuppressWarnings("deprecation")
public interface AnnotationValue {
/**

View File

@ -46,13 +46,19 @@ import com.sun.mirror.type.ClassType;
* provides a simple way to select just the items of interest
* when a method returns a collection of declarations.
*
* @deprecated All components of this API have been superseded by the
* standardized annotation processing API. The replacement for the
* functionality of this interface is included in {@link
* javax.lang.model.element.TypeElement}.
*
* @author Joseph D. Darcy
* @author Scott Seligman
*
* @see ClassType
* @since 1.5
*/
@Deprecated
@SuppressWarnings("deprecation")
public interface ClassDeclaration extends TypeDeclaration {
/**

View File

@ -29,10 +29,16 @@ package com.sun.mirror.declaration;
/**
* Represents a constructor of a class or interface.
*
* @deprecated All components of this API have been superseded by the
* standardized annotation processing API. The replacement for the
* functionality of this interface is included in {@link
* javax.lang.model.element.ExecutableElement}.
*
* @author Joe Darcy
* @author Scott Seligman
* @since 1.5
*/
@Deprecated
@SuppressWarnings("deprecation")
public interface ConstructorDeclaration extends ExecutableDeclaration {
}

View File

@ -44,6 +44,11 @@ import com.sun.mirror.util.*;
* method. There is no guarantee that any particular declaration will
* always be represented by the same object.
*
* @deprecated All components of this API have been superseded by the
* standardized annotation processing API. The replacement for the
* functionality of this interface is {@link
* javax.lang.model.element.Element}.
*
* @author Joseph D. Darcy
* @author Scott Seligman
*
@ -51,7 +56,8 @@ import com.sun.mirror.util.*;
* @see TypeMirror
* @since 1.5
*/
@Deprecated
@SuppressWarnings("deprecation")
public interface Declaration {
/**

View File

@ -29,11 +29,17 @@ package com.sun.mirror.declaration;
/**
* Represents an enum constant declaration.
*
* @deprecated All components of this API have been superseded by the
* standardized annotation processing API. The replacement for the
* functionality of this interface is included in {@link
* javax.lang.model.element.VariableElement}.
*
* @author Joseph D. Darcy
* @author Scott Seligman
* @since 1.5
*/
@Deprecated
@SuppressWarnings("deprecation")
public interface EnumConstantDeclaration extends FieldDeclaration {
/**
* {@inheritDoc}

View File

@ -32,11 +32,17 @@ import java.util.Collection;
/**
* Represents the declaration of an enum type.
*
* @deprecated All components of this API have been superseded by the
* standardized annotation processing API. The replacement for the
* functionality of this interface is included in {@link
* javax.lang.model.element.TypeElement}.
*
* @author Joseph D. Darcy
* @author Scott Seligman
* @since 1.5
*/
@Deprecated
@SuppressWarnings("deprecation")
public interface EnumDeclaration extends ClassDeclaration {
/**

View File

@ -34,11 +34,17 @@ import com.sun.mirror.type.ReferenceType;
/**
* Represents a method or constructor of a class or interface.
*
* @deprecated All components of this API have been superseded by the
* standardized annotation processing API. The replacement for the
* functionality of this interface is {@link
* javax.lang.model.element.ExecutableElement}.
*
* @author Joseph D. Darcy
* @author Scott Seligman
* @since 1.5
*/
@Deprecated
@SuppressWarnings("deprecation")
public interface ExecutableDeclaration extends MemberDeclaration {
/**

View File

@ -32,11 +32,17 @@ import com.sun.mirror.type.TypeMirror;
/**
* Represents a field of a type declaration.
*
* @deprecated All components of this API have been superseded by the
* standardized annotation processing API. The replacement for the
* functionality of this interface is included in {@link
* javax.lang.model.element.VariableElement}.
*
* @author Joseph D. Darcy
* @author Scott Seligman
* @since 1.5
*/
@Deprecated
@SuppressWarnings("deprecation")
public interface FieldDeclaration extends MemberDeclaration {
/**

View File

@ -40,12 +40,18 @@ import com.sun.mirror.type.InterfaceType;
* represents an interface <i>type</i>.
* See {@link TypeDeclaration} for more on this distinction.
*
* @deprecated All components of this API have been superseded by the
* standardized annotation processing API. The replacement for the
* functionality of this interface is included in {@link
* javax.lang.model.element.TypeElement}.
*
* @author Joseph D. Darcy
* @author Scott Seligman
*
* @see InterfaceType
* @since 1.5
*/
@Deprecated
@SuppressWarnings("deprecation")
public interface InterfaceDeclaration extends TypeDeclaration {
}

View File

@ -31,11 +31,17 @@ package com.sun.mirror.declaration;
* type. This includes fields, constructors, methods, and (since they
* may be nested) declared types themselves.
*
* @deprecated All components of this API have been superseded by the
* standardized annotation processing API. The replacement for the
* functionality of this interface is {@link
* javax.lang.model.element.Element}.
*
* @author Joseph D. Darcy
* @author Scott Seligman
* @since 1.5
*/
@Deprecated
@SuppressWarnings("deprecation")
public interface MemberDeclaration extends Declaration {
/**

View File

@ -36,11 +36,17 @@ import com.sun.mirror.type.VoidType;
* {@linkplain AnnotationTypeElementDeclaration annotation type element}
* is a kind of method.
*
* @deprecated All components of this API have been superseded by the
* standardized annotation processing API. The replacement for the
* functionality of this interface is included in {@link
* javax.lang.model.element.ExecutableElement}.
*
* @author Joseph D. Darcy
* @author Scott Seligman
* @since 1.5
*/
@Deprecated
@SuppressWarnings("deprecation")
public interface MethodDeclaration extends ExecutableDeclaration {
/**

View File

@ -35,11 +35,16 @@ package com.sun.mirror.declaration;
* then it is customary, though not required, that they appear in the same
* order as the constants listed in the detail section below.
*
* @deprecated All components of this API have been superseded by the
* standardized annotation processing API. The replacement for the
* functionality of this enum is {@link javax.lang.model.element.Modifier}.
*
* @author Joseph D. Darcy
* @author Scott Seligman
* @since 1.5
*/
@Deprecated
@SuppressWarnings("deprecation")
public enum Modifier {
// See JLS2 sections 8.1.1, 8.3.1, 8.4.3, 8.8.3, and 9.1.1.

View File

@ -37,11 +37,17 @@ import java.util.Collection;
* provides a simple way to select just the items of interest
* when a method returns a collection of declarations.
*
* @deprecated All components of this API have been superseded by the
* standardized annotation processing API. The replacement for the
* functionality of this interface is {@link
* javax.lang.model.element.PackageElement}.
*
* @author Joseph D. Darcy
* @author Scott Seligman
* @since 1.5
*/
@Deprecated
@SuppressWarnings("deprecation")
public interface PackageDeclaration extends Declaration {
/**

View File

@ -32,11 +32,17 @@ import com.sun.mirror.type.TypeMirror;
/**
* Represents a formal parameter of a method or constructor.
*
* @deprecated All components of this API have been superseded by the
* standardized annotation processing API. The replacement for the
* functionality of this interface is included in {@link
* javax.lang.model.element.VariableElement}.
*
* @author Joseph D. Darcy
* @author Scott Seligman
* @since 1.5
*/
@Deprecated
@SuppressWarnings("deprecation")
public interface ParameterDeclaration extends Declaration {
/**

View File

@ -54,13 +54,19 @@ import com.sun.mirror.type.*;
* provides a simple way to select just the items of interest
* when a method returns a collection of declarations.
*
* @deprecated All components of this API have been superseded by the
* standardized annotation processing API. The replacement for the
* functionality of this interface is included in {@link
* javax.lang.model.element.TypeElement}.
*
* @author Joseph D. Darcy
* @author Scott Seligman
*
* @see DeclaredType
* @since 1.5
*/
@Deprecated
@SuppressWarnings("deprecation")
public interface TypeDeclaration extends MemberDeclaration {
/**

View File

@ -36,11 +36,17 @@ import com.sun.mirror.type.*;
* or constructor declaration.
* A type parameter declares a {@link TypeVariable}.
*
* @deprecated All components of this API have been superseded by the
* standardized annotation processing API. The replacement for the
* functionality of this interface is {@link
* javax.lang.model.element.TypeParameterElement}.
*
* @author Joseph D. Darcy
* @author Scott Seligman
* @since 1.5
*/
@Deprecated
@SuppressWarnings("deprecation")
public interface TypeParameterDeclaration extends Declaration {
/**

View File

@ -0,0 +1,40 @@
/*
* Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Sun designates this
* particular file as subject to the "Classpath" exception as provided
* by Sun in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
/**
* Interfaces used to model program element declarations. A
* declaration is represented by the appropriate subinterface of
* {@link com.sun.mirror.declaration.Declaration}, and an annotation
* is represented as an {@link
* com.sun.mirror.declaration.AnnotationMirror}.
*
* <p>The {@code apt} tool and its associated API have been superseded
* by the standardized annotation processing API. The replacement for
* the functionality in this package is {@link
* javax.lang.model.element}.
*
* @since 1.5
*/
package com.sun.mirror.declaration;

View File

@ -1,44 +0,0 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>
<!--
Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
This code is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License version 2 only, as
published by the Free Software Foundation. Sun designates this
particular file as subject to the "Classpath" exception as provided
by Sun in the LICENSE file that accompanied this code.
This code is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
version 2 for more details (a copy is included in the LICENSE file that
accompanied this code).
You should have received a copy of the GNU General Public License version
2 along with this work; if not, write to the Free Software Foundation,
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
CA 95054 USA or visit www.sun.com if you need additional information or
have any questions.
-->
</head>
<body bgcolor="white">
Interfaces used to model program element declarations.
A declaration is represented by the appropriate subinterface of
{@link com.sun.mirror.declaration.Declaration},
and an annotation is represented as an
{@link com.sun.mirror.declaration.AnnotationMirror}.
<p>Note that the <code>apt</code> tool and its associated APIs may be
changed or superseded in future j2se releases.
@since 1.5
</body>
</html>

View File

@ -32,11 +32,17 @@ import com.sun.mirror.declaration.AnnotationTypeDeclaration;
/**
* Represents an annotation type.
*
* @deprecated All components of this API have been superseded by the
* standardized annotation processing API. The replacement for the
* functionality of this interface is included in {@link
* javax.lang.model.type.DeclaredType}.
*
* @author Joseph D. Darcy
* @author Scott Seligman
* @since 1.5
*/
@Deprecated
@SuppressWarnings("deprecation")
public interface AnnotationType extends InterfaceType {
/**

View File

@ -31,11 +31,17 @@ package com.sun.mirror.type;
* A multidimensional array type is represented as an array type
* whose component type is also an array type.
*
* @deprecated All components of this API have been superseded by the
* standardized annotation processing API. The replacement for the
* functionality of this interface is {@link
* javax.lang.model.type.ArrayType}.
*
* @author Joseph D. Darcy
* @author Scott Seligman
* @since 1.5
*/
@Deprecated
@SuppressWarnings("deprecation")
public interface ArrayType extends ReferenceType {
/**

View File

@ -38,11 +38,17 @@ import com.sun.mirror.declaration.*;
* of a class, a <tt>ClassType</tt> represents a class <i>type</i>.
* See {@link TypeDeclaration} for more on this distinction.
*
* @deprecated All components of this API have been superseded by the
* standardized annotation processing API. The replacement for the
* functionality of this interface is included in {@link
* javax.lang.model.type.DeclaredType}.
*
* @author Joseph D. Darcy
* @author Scott Seligman
* @since 1.5
*/
@Deprecated
@SuppressWarnings("deprecation")
public interface ClassType extends DeclaredType {
/**

View File

@ -48,11 +48,17 @@ import com.sun.mirror.declaration.TypeDeclaration;
* Other method invocations on such an unknown type will not, in general,
* return meaningful results.
*
* @deprecated All components of this API have been superseded by the
* standardized annotation processing API. The replacement for the
* functionality of this interface is included in {@link
* javax.lang.model.type.DeclaredType}.
*
* @author Joseph D. Darcy
* @author Scott Seligman
* @since 1.5
*/
@Deprecated
@SuppressWarnings("deprecation")
public interface DeclaredType extends ReferenceType {
/**

View File

@ -32,11 +32,17 @@ import com.sun.mirror.declaration.EnumDeclaration;
/**
* Represents an enum type.
*
* @deprecated All components of this API have been superseded by the
* standardized annotation processing API. The replacement for the
* functionality of this interface is included in {@link
* javax.lang.model.type.DeclaredType}.
*
* @author Joseph D. Darcy
* @author Scott Seligman
* @since 1.5
*/
@Deprecated
@SuppressWarnings("deprecation")
public interface EnumType extends ClassType {
/**

View File

@ -39,11 +39,17 @@ import com.sun.mirror.declaration.*;
* represents an interface <i>type</i>.
* See {@link TypeDeclaration} for more on this distinction.
*
* @deprecated All components of this API have been superseded by the
* standardized annotation processing API. The replacement for the
* functionality of this interface is included in {@link
* javax.lang.model.type.DeclaredType}.
*
* @author Joseph D. Darcy
* @author Scott Seligman
* @since 1.5
*/
@Deprecated
@SuppressWarnings("deprecation")
public interface InterfaceType extends DeclaredType {
/**

View File

@ -35,9 +35,16 @@ import com.sun.mirror.declaration.Declaration;
* Thrown when an application attempts to access the {@link Class} object
* corresponding to a {@link TypeMirror}.
*
* @deprecated All components of this API have been superseded by the
* standardized annotation processing API. The replacement for the
* functionality of this exception is {@link
* javax.lang.model.type.MirroredTypeException}.
*
* @see MirroredTypesException
* @see Declaration#getAnnotation(Class)
*/
@Deprecated
@SuppressWarnings("deprecation")
public class MirroredTypeException extends RuntimeException {
private static final long serialVersionUID = 1;

View File

@ -38,9 +38,16 @@ import com.sun.mirror.declaration.Declaration;
* Thrown when an application attempts to access a sequence of {@link Class}
* objects each corresponding to a {@link TypeMirror}.
*
* @deprecated All components of this API have been superseded by the
* standardized annotation processing API. The replacement for the
* functionality of this exception is {@link
* javax.lang.model.type.MirroredTypesException}.
*
* @see MirroredTypeException
* @see Declaration#getAnnotation(Class)
*/
@Deprecated
@SuppressWarnings("deprecation")
public class MirroredTypesException extends RuntimeException {
private static final long serialVersionUID = 1;

View File

@ -31,11 +31,17 @@ package com.sun.mirror.type;
* <tt>boolean</tt>, <tt>byte</tt>, <tt>short</tt>, <tt>int</tt>,
* <tt>long</tt>, <tt>char</tt>, <tt>float</tt>, and <tt>double</tt>.
*
* @deprecated All components of this API have been superseded by the
* standardized annotation processing API. The replacement for the
* functionality of this interface is {@link
* javax.lang.model.type.PrimitiveType}.
*
* @author Joseph D. Darcy
* @author Scott Seligman
* @since 1.5
*/
@Deprecated
@SuppressWarnings("deprecation")
public interface PrimitiveType extends TypeMirror {
/**
@ -47,7 +53,13 @@ public interface PrimitiveType extends TypeMirror {
/**
* An enumeration of the different kinds of primitive types.
*
* @deprecated All components of this API have been superseded by
* the standardized annotation processing API. The replacement
* for the functionality of this enum is {@link
* javax.lang.model.type.TypeKind}.
*/
@Deprecated
enum Kind {
/** The primitive type <tt>boolean</tt> */ BOOLEAN,
/** The primitive type <tt>byte</tt> */ BYTE,

View File

@ -30,10 +30,16 @@ package com.sun.mirror.type;
* Represents a reference type.
* These include class and interface types, array types, and type variables.
*
* @deprecated All components of this API have been superseded by the
* standardized annotation processing API. The replacement for the
* functionality of this interface is {@link
* javax.lang.model.type.ReferenceType}.
*
* @author Joseph D. Darcy
* @author Scott Seligman
* @since 1.5
*/
@Deprecated
@SuppressWarnings("deprecation")
public interface ReferenceType extends TypeMirror {
}

View File

@ -43,6 +43,11 @@ import com.sun.mirror.util.TypeVisitor;
* There is no guarantee that any particular type will
* always be represented by the same object.
*
* @deprecated All components of this API have been superseded by the
* standardized annotation processing API. The replacement for the
* functionality of this interface is {@link
* javax.lang.model.type.TypeMirror}.
*
* @author Joseph D. Darcy
* @author Scott Seligman
*
@ -50,7 +55,8 @@ import com.sun.mirror.util.TypeVisitor;
* @see Types
* @since 1.5
*/
@Deprecated
@SuppressWarnings("deprecation")
public interface TypeMirror {
/**

View File

@ -35,11 +35,17 @@ import com.sun.mirror.declaration.*;
* {@linkplain TypeParameterDeclaration type parameter} of a
* type, method, or constructor.
*
* @deprecated All components of this API have been superseded by the
* standardized annotation processing API. The replacement for the
* functionality of this interface is {@link
* javax.lang.model.type.TypeVariable}.
*
* @author Joe Darcy
* @author Scott Seligman
* @since 1.5
*/
@Deprecated
@SuppressWarnings("deprecation")
public interface TypeVariable extends ReferenceType {
/**

View File

@ -35,9 +35,15 @@ import com.sun.mirror.declaration.MethodDeclaration;
* @author Joseph D. Darcy
* @author Scott Seligman
*
* @deprecated All components of this API have been superseded by the
* standardized annotation processing API. The replacement for the
* functionality of this interface is included in {@link
* javax.lang.model.type.NoType}.
*
* @see MethodDeclaration#getReturnType()
* @since 1.5
*/
@Deprecated
@SuppressWarnings("deprecation")
public interface VoidType extends TypeMirror {
}

View File

@ -41,11 +41,17 @@ import java.util.Collection;
* <tt>extends</tt> clause, its lower bound explicitly set by a
* <tt>super</tt> clause, or neither (but not both).
*
* @deprecated All components of this API have been superseded by the
* standardized annotation processing API. The replacement for the
* functionality of this interface is {@link
* javax.lang.model.type.WildcardType}.
*
* @author Joseph D. Darcy
* @author Scott Seligman
* @since 1.5
*/
@Deprecated
@SuppressWarnings("deprecation")
public interface WildcardType extends TypeMirror {
/**

View File

@ -0,0 +1,37 @@
/*
* Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Sun designates this
* particular file as subject to the "Classpath" exception as provided
* by Sun in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
/**
* Interfaces used to model types. A type is represented by the
* appropriate subinterface of {@link com.sun.mirror.type.TypeMirror}.
*
* <p>The {@code apt} tool and its associated API have been
* superseded by the standardized annotation processing API. The
* replacement for the functionality in this package is {@link
* javax.lang.model.type}.
*
* @since 1.5
*/
package com.sun.mirror.type;

View File

@ -1,42 +0,0 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>
<!--
Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
This code is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License version 2 only, as
published by the Free Software Foundation. Sun designates this
particular file as subject to the "Classpath" exception as provided
by Sun in the LICENSE file that accompanied this code.
This code is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
version 2 for more details (a copy is included in the LICENSE file that
accompanied this code).
You should have received a copy of the GNU General Public License version
2 along with this work; if not, write to the Free Software Foundation,
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
CA 95054 USA or visit www.sun.com if you need additional information or
have any questions.
-->
</head>
<body bgcolor="white">
Interfaces used to model types.
A type is represented by the appropriate subinterface of
{@link com.sun.mirror.type.TypeMirror}.
<p>Note that the <code>apt</code> tool and its associated APIs may be
changed or superseded in future j2se releases.
@since 1.5
</body>
</html>

View File

@ -69,11 +69,17 @@ import static com.sun.mirror.declaration.Modifier.*;
* };
* result = nameFilter.filter(decls); </pre></blockquote>
*
* @deprecated All components of this API have been superseded by the
* standardized annotation processing API. The replacement for the
* functionality of this class is {@link
* javax.lang.model.util.ElementFilter}.
*
* @author Joseph D. Darcy
* @author Scott Seligman
* @since 1.5
*/
@Deprecated
@SuppressWarnings("deprecation")
public class DeclarationFilter {
// Predefined filters for convenience.

View File

@ -39,11 +39,17 @@ import com.sun.mirror.declaration.*;
* are scanned; the postprocessing visitor is called after the
* contained declarations are scanned.
*
* @deprecated All components of this API have been superseded by the
* standardized annotation processing API. The replacement for the
* functionality of this class is {@link
* javax.lang.model.util.ElementScanner6}.
*
* @author Joseph D. Darcy
* @author Scott Seligman
* @since 1.5
*/
@Deprecated
@SuppressWarnings("deprecation")
class DeclarationScanner implements DeclarationVisitor {
protected DeclarationVisitor pre;
protected DeclarationVisitor post;

View File

@ -37,11 +37,17 @@ import com.sun.mirror.declaration.*;
* <tt>visit<i>Xxx</i></tt> method applicable to that declaration is
* invoked.
*
* @deprecated All components of this API have been superseded by the
* standardized annotation processing API. The replacement for the
* functionality of this interface is {@link
* javax.lang.model.element.ElementVisitor}.
*
* @author Joseph D. Darcy
* @author Scott Seligman
* @since 1.5
*/
@Deprecated
@SuppressWarnings("deprecation")
public interface DeclarationVisitor {
/**

View File

@ -28,10 +28,17 @@ package com.sun.mirror.util;
/**
* Utilities to create specialized <tt>DeclarationVisitor</tt> instances.
*
* @deprecated All components of this API have been superseded by the
* standardized annotation processing API. There is no direct
* replacement for the functionality of this class in the standardized
* API due to that API's different visitor structure.
*
* @author Joseph D. Darcy
* @author Scott Seligman
* @since 1.5
*/
@Deprecated
@SuppressWarnings("deprecation")
public class DeclarationVisitors {
private DeclarationVisitors(){} // do not instantiate.

View File

@ -32,11 +32,17 @@ import com.sun.mirror.declaration.*;
/**
* Utility methods for operating on declarations.
*
* @deprecated All components of this API have been superseded by the
* standardized annotation processing API. The replacement for the
* functionality of this interface is {@link
* javax.lang.model.util.Elements}.
*
* @author Joseph D. Darcy
* @author Scott Seligman
* @since 1.5
*/
@Deprecated
@SuppressWarnings("deprecation")
public interface Declarations {
/**

View File

@ -37,11 +37,17 @@ import com.sun.mirror.declaration.*;
* methods that correspond to the kinds of declarations on which it
* will operate.
*
* @deprecated All components of this API have been superseded by the
* standardized annotation processing API. The replacement for the
* functionality of this class is {@link
* javax.lang.model.util.SimpleElementVisitor6}.
*
* @author Joseph D. Darcy
* @author Scott Seligman
* @since 1.5
*/
@Deprecated
@SuppressWarnings("deprecation")
public class SimpleDeclarationVisitor implements DeclarationVisitor {
/**

View File

@ -37,11 +37,17 @@ import com.sun.mirror.type.*;
* methods that correspond to the kinds of types on which it will
* operate.
*
* @deprecated All components of this API have been superseded by the
* standardized annotation processing API. The replacement for the
* functionality of this class is {@link
* javax.lang.model.util.SimpleTypeVisitor6}.
*
* @author Joseph D. Darcy
* @author Scott Seligman
* @since 1.5
*/
@Deprecated
@SuppressWarnings("deprecation")
public class SimpleTypeVisitor implements TypeVisitor {
/**

View File

@ -42,10 +42,17 @@ import java.util.TreeSet;
* are scanned; the postprocessing visitor is called after the
* contained declarations are scanned.
*
* @deprecated All components of this API have been superseded by the
* standardized annotation processing API. The replacement for the
* functionality of this class is {@link
* javax.lang.model.util.SimpleElementVisitor6}.
*
* @author Joseph D. Darcy
* @author Scott Seligman
* @since 1.5
*/
@Deprecated
@SuppressWarnings("deprecation")
class SourceOrderDeclScanner extends DeclarationScanner {
static class SourceOrderComparator implements java.util.Comparator<Declaration> {
SourceOrderComparator(){}

View File

@ -32,11 +32,20 @@ import java.io.File;
/**
* Represents a position in a source file.
*
* @deprecated All components of this API have been superseded by the
* standardized annotation processing API. There is no direct
* replacement for the functionality of this interface since the
* standardized {@link javax.annotation.processing.Messager Messager}
* API implicitly takes a source position argument via any element,
* annotation mirror, or annotation value passed along with the
* message.
*
* @author Joseph D. Darcy
* @author Scott Seligman
* @since 1.5
*/
@Deprecated
@SuppressWarnings("deprecation")
public interface SourcePosition {
/**

View File

@ -38,11 +38,17 @@ import com.sun.mirror.type.*;
* the most specific <tt>visit<i>Xxx</i></tt> method applicable to
* that type is invoked.
*
* @deprecated All components of this API have been superseded by the
* standardized annotation processing API. The replacement for the
* functionality of this interface is {@link
* javax.lang.model.element.TypeVisitor}.
*
* @author Joseph D. Darcy
* @author Scott Seligman
* @since 1.5
*/
@Deprecated
@SuppressWarnings("deprecation")
public interface TypeVisitor {
/**

View File

@ -35,11 +35,17 @@ import com.sun.mirror.type.*;
/**
* Utility methods for operating on types.
*
* @deprecated All components of this API have been superseded by the
* standardized annotation processing API. The replacement for the
* functionality of this interface is {@link
* javax.lang.model.util.Types}.
*
* @author Joseph D. Darcy
* @author Scott Seligman
* @since 1.5
*/
@Deprecated
@SuppressWarnings("deprecation")
public interface Types {
/**

View File

@ -0,0 +1,37 @@
/*
* Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Sun designates this
* particular file as subject to the "Classpath" exception as provided
* by Sun in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
/**
* Utilities to assist in the processing of {@linkplain
* com.sun.mirror.declaration declarations} and {@linkplain
* com.sun.mirror.type types}.
*
* <p>The {@code apt} tool and its associated API have been superseded
* by the standardized annotation processing API. The replacement for
* the functionality in this package is {@link javax.lang.model.util}.
*
* @since 1.5
*/
package com.sun.mirror.util;

View File

@ -1,42 +0,0 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>
<!--
Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
This code is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License version 2 only, as
published by the Free Software Foundation. Sun designates this
particular file as subject to the "Classpath" exception as provided
by Sun in the LICENSE file that accompanied this code.
This code is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
version 2 for more details (a copy is included in the LICENSE file that
accompanied this code).
You should have received a copy of the GNU General Public License version
2 along with this work; if not, write to the Free Software Foundation,
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
CA 95054 USA or visit www.sun.com if you need additional information or
have any questions.
-->
</head>
<body bgcolor="white">
Utilities to assist in the processing of {@linkplain
com.sun.mirror.declaration declarations} and {@linkplain
com.sun.mirror.type types}.
<p>Note that the <code>apt</code> tool and its associated APIs may be
changed or superseded in future j2se releases.
@since 1.5
</body>
</html>

View File

@ -65,6 +65,7 @@ import static com.sun.tools.apt.mirror.declaration.DeclarationMaker.isJavaIdenti
* risk. This code and its internal interfaces are subject to change
* or deletion without notice.</b>
*/
@SuppressWarnings("deprecation")
public class Apt extends ListBuffer<Env<AttrContext>> {
java.util.Set<String> genSourceFileNames = new java.util.LinkedHashSet<String>();
public java.util.Set<String> getSourceFileNames() {

View File

@ -29,6 +29,7 @@ import java.util.*;
import com.sun.mirror.apt.*;
import com.sun.mirror.declaration.AnnotationTypeDeclaration;
@SuppressWarnings("deprecation")
public class BootstrapAPF implements AnnotationProcessorFactory {
static final Collection<String> supportedOptions =

View File

@ -36,6 +36,7 @@ import com.sun.mirror.util.*;
/**
* Class used to implement "-print" option.
*/
@SuppressWarnings("deprecation")
public class PrintAP implements AnnotationProcessor {

View File

@ -50,6 +50,7 @@ import com.sun.tools.javac.parser.DocCommentScanner;
* risk. This code and its internal interfaces are subject to change
* or deletion without notice.</b>
*/
@SuppressWarnings("deprecation")
public class JavaCompiler extends com.sun.tools.javac.main.JavaCompiler {
/** The context key for the compiler. */
protected static final Context.Key<JavaCompiler> compilerKey =

View File

@ -64,6 +64,7 @@ import com.sun.mirror.apt.AnnotationProcessorFactory;
* risk. This code and its internal interfaces are subject to change
* or deletion without notice.</b>
*/
@SuppressWarnings("deprecation")
public class Main {
/** For testing: enter any options you want to be set implicitly
@ -780,7 +781,6 @@ public class Main {
// prefixed to command line arguments.
processArgs(forcedOpts);
/*
* A run of apt only gets passed the most recently generated
* files; the initial run of apt gets passed the files from
@ -792,6 +792,11 @@ public class Main {
// assign args the result of parse to capture results of
// '@file' expansion
origFilenames = processArgs((args=CommandLine.parse(args)));
if (options.get("suppress-tool-api-removal-message") == null) {
Bark.printLines(out, getLocalizedString("misc.Deprecation"));
}
if (origFilenames == null) {
return EXIT_CMDERR;
} else if (origFilenames.size() == 0) {

View File

@ -39,7 +39,7 @@ import com.sun.tools.javac.util.Names;
/**
* The environment for a run of apt.
*/
@SuppressWarnings("deprecation")
public class AptEnv {
public Names names; // javac's name table

View File

@ -47,6 +47,7 @@ import static com.sun.mirror.util.DeclarationVisitors.*;
/*
* Annotation Processor Environment implementation.
*/
@SuppressWarnings("deprecation")
public class AnnotationProcessorEnvironmentImpl implements AnnotationProcessorEnvironment {
Collection<TypeDeclaration> spectypedecls;

View File

@ -45,7 +45,7 @@ import static com.sun.mirror.apt.Filer.Location.*;
/**
* Implementation of Filer.
*/
@SuppressWarnings("deprecation")
public class FilerImpl implements Filer {
/*
* The Filer class must maintain a number of constraints. First,

View File

@ -38,7 +38,7 @@ import com.sun.tools.apt.util.Bark;
/**
* Implementation of Messager.
*/
@SuppressWarnings("deprecation")
public class MessagerImpl implements Messager {
private final Bark bark;

View File

@ -29,6 +29,7 @@ import com.sun.mirror.apt.AnnotationProcessorEnvironment;
import com.sun.mirror.apt.RoundCompleteEvent;
import com.sun.mirror.apt.RoundState;
@SuppressWarnings("deprecation")
public class RoundCompleteEventImpl extends RoundCompleteEvent {
private static final long serialVersionUID = 7067621446720784300L;

View File

@ -28,6 +28,7 @@ package com.sun.tools.apt.mirror.apt;
import com.sun.mirror.apt.RoundState;
import java.util.Map;
@SuppressWarnings("deprecation")
public class RoundStateImpl implements RoundState {
private final boolean finalRound;
private final boolean errorRaised;

View File

@ -42,7 +42,7 @@ import com.sun.tools.javac.util.Pair;
/**
* Implementation of AnnotationMirror
*/
@SuppressWarnings("deprecation")
public class AnnotationMirrorImpl implements AnnotationMirror {
protected final AptEnv env;

View File

@ -49,7 +49,7 @@ import com.sun.tools.javac.util.Pair;
* <p> The "dynamic proxy return form" of an attribute element value is
* the form used by sun.reflect.annotation.AnnotationInvocationHandler.
*/
@SuppressWarnings("deprecation")
class AnnotationProxyMaker {
private final AptEnv env;

View File

@ -37,7 +37,7 @@ import com.sun.tools.javac.code.Symbol.*;
/**
* Implementation of AnnotationTypeDeclaration
*/
@SuppressWarnings("deprecation")
public class AnnotationTypeDeclarationImpl extends InterfaceDeclarationImpl
implements AnnotationTypeDeclaration
{

View File

@ -35,7 +35,7 @@ import com.sun.tools.javac.code.Symbol.MethodSymbol;
/**
* Implementation of AnnotationTypeElementDeclaration
*/
@SuppressWarnings("deprecation")
public class AnnotationTypeElementDeclarationImpl extends MethodDeclarationImpl
implements AnnotationTypeElementDeclaration {

View File

@ -40,7 +40,7 @@ import com.sun.tools.javac.code.TypeTags;
/**
* Implementation of AnnotationValue
*/
@SuppressWarnings("deprecation")
public class AnnotationValueImpl implements AnnotationValue {
protected final AptEnv env;

View File

@ -42,7 +42,7 @@ import com.sun.tools.javac.code.Symbol.*;
/**
* Implementation of ClassDeclaration
*/
@SuppressWarnings("deprecation")
public class ClassDeclarationImpl extends TypeDeclarationImpl
implements ClassDeclaration {

View File

@ -39,6 +39,7 @@ import static com.sun.tools.javac.code.TypeTags.*;
/**
* Utility class for operating on constant expressions.
*/
@SuppressWarnings("deprecation")
class Constants {
/**

View File

@ -39,7 +39,7 @@ import com.sun.tools.javac.code.Symbol.MethodSymbol;
/**
* Implementation of ConstructorDeclaration
*/
@SuppressWarnings("deprecation")
public class ConstructorDeclarationImpl extends ExecutableDeclarationImpl
implements ConstructorDeclaration {

View File

@ -52,7 +52,7 @@ import static com.sun.tools.javac.code.Kinds.*;
/**
* Implementation of Declaration
*/
@SuppressWarnings("deprecation")
public abstract class DeclarationImpl implements Declaration {
protected final AptEnv env;

View File

@ -40,7 +40,7 @@ import com.sun.tools.javac.main.JavaCompiler;
/**
* Utilities for constructing and caching declarations.
*/
@SuppressWarnings("deprecation")
public class DeclarationMaker {
private AptEnv env;

View File

@ -35,7 +35,7 @@ import com.sun.tools.javac.code.Symbol.VarSymbol;
/**
* Implementation of EnumConstantDeclaration
*/
@SuppressWarnings("deprecation")
public class EnumConstantDeclarationImpl extends FieldDeclarationImpl
implements EnumConstantDeclaration {

View File

@ -37,7 +37,7 @@ import com.sun.tools.javac.code.Symbol.*;
/**
* Implementation of EnumDeclaration
*/
@SuppressWarnings("deprecation")
public class EnumDeclarationImpl extends ClassDeclarationImpl
implements EnumDeclaration {

View File

@ -39,7 +39,7 @@ import com.sun.tools.javac.code.Symbol.*;
/**
* Implementation of ExecutableDeclaration
*/
@SuppressWarnings("deprecation")
public abstract class ExecutableDeclarationImpl extends MemberDeclarationImpl
implements ExecutableDeclaration {
public MethodSymbol sym;

View File

@ -40,7 +40,7 @@ import com.sun.tools.javac.code.TypeTags;
/**
* Implementation of FieldDeclaration
*/
@SuppressWarnings("deprecation")
class FieldDeclarationImpl extends MemberDeclarationImpl
implements FieldDeclaration {

View File

@ -35,7 +35,7 @@ import com.sun.tools.javac.code.Symbol.*;
/**
* Implementation of InterfaceDeclaration
*/
@SuppressWarnings("deprecation")
public class InterfaceDeclarationImpl extends TypeDeclarationImpl
implements InterfaceDeclaration {

View File

@ -40,7 +40,7 @@ import com.sun.tools.javac.code.Type;
/**
* Implementation of MemberDeclaration
*/
@SuppressWarnings("deprecation")
public abstract class MemberDeclarationImpl extends DeclarationImpl
implements MemberDeclaration {

View File

@ -36,7 +36,7 @@ import com.sun.tools.javac.code.Symbol.MethodSymbol;
/**
* Implementation of MethodDeclaration
*/
@SuppressWarnings("deprecation")
public class MethodDeclarationImpl extends ExecutableDeclarationImpl
implements MethodDeclaration {

View File

@ -39,7 +39,7 @@ import com.sun.tools.javac.code.Symbol.*;
/**
* Implementation of PackageDeclaration.
*/
@SuppressWarnings("deprecation")
public class PackageDeclarationImpl extends DeclarationImpl
implements PackageDeclaration {

View File

@ -39,7 +39,7 @@ import com.sun.tools.javac.code.Symbol.VarSymbol;
/**
* Implementation of ParameterDeclaration
*/
@SuppressWarnings("deprecation")
public class ParameterDeclarationImpl extends DeclarationImpl
implements ParameterDeclaration
{

View File

@ -40,7 +40,7 @@ import com.sun.tools.javac.util.Name;
/**
* Implementation of TypeDeclaration
*/
@SuppressWarnings("deprecation")
public class TypeDeclarationImpl extends MemberDeclarationImpl
implements TypeDeclaration {

View File

@ -40,7 +40,7 @@ import com.sun.tools.javac.code.Symbol.*;
/**
* Implementation of TypeParameterDeclaration
*/
@SuppressWarnings("deprecation")
public class TypeParameterDeclarationImpl extends DeclarationImpl
implements TypeParameterDeclaration
{

View File

@ -36,7 +36,7 @@ import com.sun.tools.javac.code.Type;
/**
* Implementation of AnnotationType
*/
@SuppressWarnings("deprecation")
public class AnnotationTypeImpl extends InterfaceTypeImpl
implements AnnotationType {

View File

@ -35,7 +35,7 @@ import com.sun.tools.javac.code.Type;
/**
* Implementation of ArrayType
*/
@SuppressWarnings("deprecation")
public class ArrayTypeImpl extends TypeMirrorImpl implements ArrayType {
protected Type.ArrayType type;

View File

@ -36,7 +36,7 @@ import com.sun.tools.javac.code.Type;
/**
* Implementation of ClassType
*/
@SuppressWarnings("deprecation")
public class ClassTypeImpl extends DeclaredTypeImpl implements ClassType {
ClassTypeImpl(AptEnv env, Type.ClassType type) {

View File

@ -38,7 +38,7 @@ import com.sun.tools.javac.code.Symbol.ClassSymbol;
/**
* Implementation of DeclaredType
*/
@SuppressWarnings("deprecation")
abstract class DeclaredTypeImpl extends TypeMirrorImpl
implements DeclaredType {

View File

@ -36,7 +36,7 @@ import com.sun.tools.javac.code.Type;
/**
* Implementation of EnumType
*/
@SuppressWarnings("deprecation")
public class EnumTypeImpl extends ClassTypeImpl implements EnumType {
EnumTypeImpl(AptEnv env, Type.ClassType type) {

Some files were not shown because too many files have changed in this diff Show More