src/share/classes/com/sun/mirror/declaration/Modifier.java

Print this page

        

*** 33,47 **** * <p> Not all modifiers are applicable to all kinds of declarations. * When two or more modifiers appear in the source code of a declaration, * then it is customary, though not required, that they appear in the same * order as the constants listed in the detail section below. * * @author Joseph D. Darcy * @author Scott Seligman * @since 1.5 */ ! public enum Modifier { // See JLS2 sections 8.1.1, 8.3.1, 8.4.3, 8.8.3, and 9.1.1. // java.lang.reflect.Modifier includes INTERFACE, but that's a VMism. --- 33,52 ---- * <p> Not all modifiers are applicable to all kinds of declarations. * When two or more modifiers appear in the source code of a 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. // java.lang.reflect.Modifier includes INTERFACE, but that's a VMism.