src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/util/Utils.java
changeset 58477 d148a7e7160c
parent 55196 7586561128e3
child 58679 9c3209ff7550
child 58727 fa1f838b5486
equal deleted inserted replaced
58474:74094a60d018 58477:d148a7e7160c
   527             return false;
   527             return false;
   528         }
   528         }
   529         return true;
   529         return true;
   530     }
   530     }
   531 
   531 
       
   532     public boolean isUndocumentedEnclosure(TypeElement enclosingTypeElement) {
       
   533         return isPackagePrivate(enclosingTypeElement) && !isLinkable(enclosingTypeElement);
       
   534     }
       
   535 
   532     public boolean isError(TypeElement te) {
   536     public boolean isError(TypeElement te) {
   533         if (isEnum(te) || isInterface(te) || isAnnotationType(te)) {
   537         if (isEnum(te) || isInterface(te) || isAnnotationType(te)) {
   534             return false;
   538             return false;
   535         }
   539         }
   536         return typeUtils.isSubtype(te.asType(), getErrorType());
   540         return typeUtils.isSubtype(te.asType(), getErrorType());
  1062             return true;
  1066             return true;
  1063         }
  1067         }
  1064 
  1068 
  1065         // Allow for the behavior that members of undocumented supertypes
  1069         // Allow for the behavior that members of undocumented supertypes
  1066         // may be included in documented types
  1070         // may be included in documented types
  1067         TypeElement enclElem = getEnclosingTypeElement(elem);
  1071         if (isUndocumentedEnclosure(getEnclosingTypeElement(elem))) {
  1068         if (typeElem != enclElem && isSubclassOf(typeElem, enclElem)) {
       
  1069             return true;
  1072             return true;
  1070         }
  1073         }
  1071 
  1074 
  1072         // Allow for external members
  1075         // Allow for external members
  1073         return isLinkable(typeElem)
  1076         return isLinkable(typeElem)