< prev index next >

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

Print this page

        

*** 23,32 **** --- 23,33 ---- * 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,92 **** --- 84,105 ---- * @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 >