src/share/classes/com/sun/mirror/type/PrimitiveType.java

Print this page

        

*** 29,43 **** /** * Represents a primitive type. These include * <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>. * * @author Joseph D. Darcy * @author Scott Seligman * @since 1.5 */ ! public interface PrimitiveType extends TypeMirror { /** * Returns the kind of primitive type that this object represents. * --- 29,49 ---- /** * Represents a primitive type. These include * <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 { /** * Returns the kind of primitive type that this object represents. *
*** 45,55 **** --- 51,67 ---- */ Kind getKind(); /** * 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, /** The primitive type <tt>short</tt> */ SHORT, /** The primitive type <tt>int</tt> */ INT,