< prev index next >

src/jdk.compiler/share/classes/com/sun/source/tree/ClassTree.java

Print this page

        

@@ -23,10 +23,11 @@
  * questions.
  */
 
 package com.sun.source.tree;
 
+import java.util.Collections;
 import java.util.List;
 import javax.lang.model.element.Name;
 
 /**
  * A tree node for a class, interface, enum, or annotation

@@ -83,10 +84,22 @@
      * @return the interfaces
      */
     List<? extends Tree> getImplementsClause();
 
     /**
+     * Returns the subtypes permitted by this type declaration.
+     * @implSpec this implementation returns an empty list
+     * @return the subtypes
+     * @since amber
+     */
+    @Deprecated(forRemoval=true, since="amber")
+    @SuppressWarnings("removal")
+    default List<? extends Tree> getPermitsClause() {
+        return Collections.emptyList();
+    }
+
+    /**
      * Returns the members declared in this type declaration.
      * @return the members
      */
     List<? extends Tree> getMembers();
 }
< prev index next >