< prev index next >

src/jdk.compiler/share/classes/com/sun/tools/javac/code/Symbol.java

Print this page

        

@@ -1454,11 +1454,11 @@
                                : sup.getAnnotationsByType(annoType);
         }
 
 
         @DefinedBy(Api.LANGUAGE_MODEL)
-        @SuppressWarnings("removal")
+        @SuppressWarnings("preview")
         public ElementKind getKind() {
             apiComplete();
             long flags = flags();
             if ((flags & ANNOTATION) != 0)
                 return ElementKind.ANNOTATION_TYPE;

@@ -1491,11 +1491,11 @@
             }
             return rc;
         }
 
         @Override @DefinedBy(Api.LANGUAGE_MODEL)
-        @SuppressWarnings("removal")
+        @SuppressWarnings("preview")
         public List<? extends RecordComponent> getRecordComponents() {
             return recordComponents;
         }
 
         @DefinedBy(Api.LANGUAGE_MODEL)

@@ -1731,33 +1731,33 @@
         public <R, P> R accept(Symbol.Visitor<R, P> v, P p) {
             return v.visitVarSymbol(this, p);
         }
     }
 
-    @SuppressWarnings("removal")
+    @SuppressWarnings("preview")
     public static class RecordComponent extends VarSymbol implements RecordComponentElement {
 
         /**
          * Construct a record component, given its flags, name, type and owner.
          */
         public RecordComponent(long flags, Name name, Type type, Symbol owner) {
             super(flags, name, type, owner);
         }
 
         @Override @DefinedBy(Api.LANGUAGE_MODEL)
-        @SuppressWarnings("removal")
+        @SuppressWarnings("preview")
         public ElementKind getKind() {
             return ElementKind.RECORD_COMPONENT;
         }
 
         @Override @DefinedBy(Api.LANGUAGE_MODEL)
         public ExecutableElement getAccessor() {
             return accessor;
         }
 
         @Override @DefinedBy(Api.LANGUAGE_MODEL)
-        @SuppressWarnings("removal")
+        @SuppressWarnings("preview")
         public <R, P> R accept(ElementVisitor<R, P> v, P p) {
             return v.visitRecordComponent(this, p);
         }
     }
 
< prev index next >