Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8268143

remove superfluous @SuppressWarnings("preview") annotation from com.sun.source.util.TreeScanner

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Withdrawn
    • Icon: P4 P4
    • 17
    • tools
    • None
    • minimal

      Summary

      The API of class com.sun.source.util.TreeScanner is still annotated with @SuppressWarnings("preview") even when the API it is using is not part of a preview feature anymore. This superfluous annotation should be removed

      Problem

      The API of class com.sun.source.util.TreeScanner is still annotated with @SuppressWarnings("preview") even when the API it is using is not part of a preview feature anymore

      Solution

      Remove the superfluous @SuppressWarnings("preview") annotation from the API of class com.sun.source.util.TreeScanner.

      Specification

      diff --git a/src/jdk.compiler/share/classes/com/sun/source/util/TreeScanner.java b/src/jdk.compiler/share/classes/com/sun/source/util/TreeScanner.java
      @@ -183,7 +183,6 @@ public class TreeScanner<R,P> implements TreeVisitor<R,P> {
            * @param p  {@inheritDoc}
            * @return the result of scanning
            */
      -    @SuppressWarnings("preview")
           @Override
           public R visitClass(ClassTree node, P p) {}

            vromero Vicente Arturo Romero Zaldivar
            vromero Vicente Arturo Romero Zaldivar
            Gavin Bierman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: