src/jdk.compiler/share/classes/com/sun/tools/javac/code/Symbol.java
changeset 58713 ad69fd32778e
parent 58350 e23e560afbcb
equal deleted inserted replaced
58712:14e098407bb0 58713:ad69fd32778e
   376 
   376 
   377     public boolean isDeprecatedForRemoval() {
   377     public boolean isDeprecatedForRemoval() {
   378         return (flags_field & DEPRECATED_REMOVAL) != 0;
   378         return (flags_field & DEPRECATED_REMOVAL) != 0;
   379     }
   379     }
   380 
   380 
       
   381     public boolean isPreviewApi() {
       
   382         return (flags_field & PREVIEW_API) != 0;
       
   383     }
       
   384 
   381     public boolean isDeprecatableViaAnnotation() {
   385     public boolean isDeprecatableViaAnnotation() {
   382         switch (getKind()) {
   386         switch (getKind()) {
   383             case LOCAL_VARIABLE:
   387             case LOCAL_VARIABLE:
   384             case PACKAGE:
   388             case PACKAGE:
   385             case PARAMETER:
   389             case PARAMETER: