< prev index next >

src/jdk.javadoc/share/classes/jdk/javadoc/internal/tool/ElementsTable.java

Print this page

        

*** 1198,1208 **** static final EnumSet<ElementKind> ALLOWED_KINDS = EnumSet.of(ElementKind.METHOD, ElementKind.CLASS, ElementKind.PACKAGE, ElementKind.MODULE); ! // all possible accesss levels allowed for each element private final EnumMap<ElementKind, EnumSet<AccessKind>> filterMap = new EnumMap<>(ElementKind.class); // the specified access level for each element private final EnumMap<ElementKind, AccessKind> accessMap = --- 1198,1208 ---- static final EnumSet<ElementKind> ALLOWED_KINDS = EnumSet.of(ElementKind.METHOD, ElementKind.CLASS, ElementKind.PACKAGE, ElementKind.MODULE); ! // all possible access levels allowed for each element private final EnumMap<ElementKind, EnumSet<AccessKind>> filterMap = new EnumMap<>(ElementKind.class); // the specified access level for each element private final EnumMap<ElementKind, AccessKind> accessMap =
*** 1283,1293 **** // convert a requested element kind to an allowed access kind private ElementKind getAllowedKind(ElementKind kind) { switch (kind) { case CLASS: case METHOD: case MODULE: case PACKAGE: return kind; ! case ANNOTATION_TYPE: case ENUM: case INTERFACE: return ElementKind.CLASS; case CONSTRUCTOR: case ENUM_CONSTANT: case EXCEPTION_PARAMETER: case FIELD: case INSTANCE_INIT: case LOCAL_VARIABLE: case PARAMETER: case RESOURCE_VARIABLE: case STATIC_INIT: case TYPE_PARAMETER: return ElementKind.METHOD; --- 1283,1293 ---- // convert a requested element kind to an allowed access kind private ElementKind getAllowedKind(ElementKind kind) { switch (kind) { case CLASS: case METHOD: case MODULE: case PACKAGE: return kind; ! case RECORD: case ANNOTATION_TYPE: case ENUM: case INTERFACE: return ElementKind.CLASS; case CONSTRUCTOR: case ENUM_CONSTANT: case EXCEPTION_PARAMETER: case FIELD: case INSTANCE_INIT: case LOCAL_VARIABLE: case PARAMETER: case RESOURCE_VARIABLE: case STATIC_INIT: case TYPE_PARAMETER: return ElementKind.METHOD;
< prev index next >