< prev index next >

src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/util/Utils.java

Print this page

        

@@ -300,11 +300,11 @@
 
     public boolean isAnnotated(Element e) {
         return !e.getAnnotationMirrors().isEmpty();
     }
 
-    @SuppressWarnings("removal")
+    @SuppressWarnings("preview")
     public boolean isAnnotationType(Element e) {
         return new SimpleElementVisitor14<Boolean, Void>() {
             @Override
             public Boolean visitExecutable(ExecutableElement e, Void p) {
                 return visit(e.getEnclosingElement());

@@ -416,16 +416,16 @@
 
     public boolean isExternalizable(TypeElement e) {
         return typeUtils.isSubtype(e.asType(), getExternalizableType());
     }
 
-    @SuppressWarnings("removal")
+    @SuppressWarnings("preview")
     public boolean isRecord(TypeElement e) {
         return e.getKind() == ElementKind.RECORD;
     }
 
-    @SuppressWarnings("removal")
+    @SuppressWarnings("preview")
     public boolean isCanonicalRecordConstructor(ExecutableElement ee) {
         TypeElement te = (TypeElement) ee.getEnclosingElement();
         List<? extends RecordComponentElement> stateComps = te.getRecordComponents();
         List<? extends VariableElement> params = ee.getParameters();
         if (stateComps.size() != params.size()) {

@@ -456,11 +456,11 @@
 
     public boolean definesSerializableFields(TypeElement aclass) {
         return configuration.workArounds.definesSerializableFields( aclass);
     }
 
-    @SuppressWarnings("removal")
+    @SuppressWarnings("preview")
     public String modifiersToString(Element e, boolean trailingSpace) {
         SortedSet<Modifier> modifiers = new TreeSet<>(e.getModifiers());
         modifiers.remove(NATIVE);
         modifiers.remove(STRICTFP);
         modifiers.remove(SYNCHRONIZED);

@@ -529,11 +529,11 @@
                 mods.remove(FINAL); // suppress the implicit `final`
                 return visitTypeAsClass(e, mods);
             }
 
             @Override
-            @SuppressWarnings("removal")
+            @SuppressWarnings("preview")
             public String visitTypeAsClass(TypeElement e, SortedSet<Modifier> mods) {
                 Set<Modifier> beforeSealed = EnumSet.noneOf(Modifier.class);
                 Set<Modifier> afterSealed = EnumSet.noneOf(Modifier.class);
                 Set<Modifier> set = beforeSealed;
                 for (Modifier m : Modifier.values()) {

@@ -1941,11 +1941,11 @@
      */
     public String getFullyQualifiedName(Element e) {
         return getFullyQualifiedName(e, true);
     }
 
-    @SuppressWarnings("removal")
+    @SuppressWarnings("preview")
     public String getFullyQualifiedName(Element e, final boolean outer) {
         return new SimpleElementVisitor14<String, Void>() {
             @Override
             public String visitModule(ModuleElement e, Void p) {
                 return e.getQualifiedName().toString();

@@ -2116,11 +2116,11 @@
                 case METHOD:            return 10;
                 default: throw new IllegalArgumentException(e.getKind().toString());
             }
         }
 
-        @SuppressWarnings("removal")
+        @SuppressWarnings("preview")
         boolean hasParameters(Element e) {
             return new SimpleElementVisitor14<Boolean, Void>() {
                 @Override
                 public Boolean visitExecutable(ExecutableElement e, Void p) {
                     return true;

@@ -2138,11 +2138,11 @@
          * The fully qualified names of the entities, used solely by the comparator.
          *
          * @return a negative integer, zero, or a positive integer as the first argument is less
          * than, equal to, or greater than the second.
          */
-        @SuppressWarnings("removal")
+        @SuppressWarnings("preview")
         private String getFullyQualifiedName(Element e) {
             return new SimpleElementVisitor14<String, Void>() {
                 @Override
                 public String visitModule(ModuleElement e, Void p) {
                     return e.getQualifiedName().toString();

@@ -2250,16 +2250,16 @@
 
     public List<TypeElement> getAnnotationTypesUnfiltered(Element e) {
         return convertToTypeElement(getItems(e, false, ANNOTATION_TYPE));
     }
 
-    @SuppressWarnings("removal")
+    @SuppressWarnings("preview")
     public List<TypeElement> getRecords(Element e) {
         return convertToTypeElement(getItems(e, true, RECORD));
     }
 
-    @SuppressWarnings("removal")
+    @SuppressWarnings("preview")
     public List<TypeElement> getRecordsUnfiltered(Element e) {
         return convertToTypeElement(getItems(e, false, RECORD));
     }
 
     public List<VariableElement> getFields(Element e) {

@@ -2504,11 +2504,11 @@
                 .stream()
                 .filter(this::isException)
                 .collect(Collectors.toList());
     }
 
-    @SuppressWarnings("removal")
+    @SuppressWarnings("preview")
     List<Element> getItems(Element e, boolean filter, ElementKind select) {
         List<Element> elements = new ArrayList<>();
         return new SimpleElementVisitor14<List<Element>, Void>() {
 
             @Override

@@ -2552,14 +2552,14 @@
             }
         }
         return elements;
     }
 
-    @SuppressWarnings("removal")
+    @SuppressWarnings("preview")
     private SimpleElementVisitor14<Boolean, Void> shouldDocumentVisitor = null;
 
-    @SuppressWarnings("removal")
+    @SuppressWarnings("preview")
     public boolean shouldDocument(Element e) {
         if (shouldDocumentVisitor == null) {
             shouldDocumentVisitor = new SimpleElementVisitor14<Boolean, Void>() {
                 private boolean hasSource(TypeElement e) {
                     return configuration.docEnv.getFileKind(e) ==

@@ -2608,14 +2608,14 @@
      */
     public String getSimpleName(Element e) {
         return nameCache.computeIfAbsent(e, this::getSimpleName0);
     }
 
-    @SuppressWarnings("removal")
+    @SuppressWarnings("preview")
     private SimpleElementVisitor14<String, Void> snvisitor = null;
 
-    @SuppressWarnings("removal")
+    @SuppressWarnings("preview")
     private String getSimpleName0(Element e) {
         if (snvisitor == null) {
             snvisitor = new SimpleElementVisitor14<String, Void>() {
                 @Override
                 public String visitModule(ModuleElement e, Void p) {

@@ -2795,13 +2795,13 @@
 
     public boolean isIncluded(Element e) {
         return configuration.docEnv.isIncluded(e);
     }
 
-    @SuppressWarnings("removal")
+    @SuppressWarnings("preview")
     private SimpleElementVisitor14<Boolean, Void> specifiedVisitor = null;
-    @SuppressWarnings("removal")
+    @SuppressWarnings("preview")
     public boolean isSpecified(Element e) {
         if (specifiedVisitor == null) {
             specifiedVisitor = new SimpleElementVisitor14<Boolean, Void>() {
                 @Override
                 public Boolean visitModule(ModuleElement e, Void p) {
< prev index next >