langtools/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/util/ClassTree.java
changeset 40303 96a1226aca18
parent 39364 bd6d4a7936b4
child 40508 74ef30d16fb9
equal deleted inserted replaced
40302:8c0d8d2c3519 40303:96a1226aca18
    42 import javax.lang.model.element.TypeElement;
    42 import javax.lang.model.element.TypeElement;
    43 import javax.lang.model.type.TypeMirror;
    43 import javax.lang.model.type.TypeMirror;
    44 
    44 
    45 import jdk.javadoc.doclet.DocletEnvironment;
    45 import jdk.javadoc.doclet.DocletEnvironment;
    46 import jdk.javadoc.internal.doclets.toolkit.Configuration;
    46 import jdk.javadoc.internal.doclets.toolkit.Configuration;
       
    47 import jdk.javadoc.internal.doclets.toolkit.Messages;
    47 
    48 
    48 /**
    49 /**
    49  * Build Class Hierarchy for all the Classes. This class builds the Class
    50  * Build Class Hierarchy for all the Classes. This class builds the Class
    50  * Tree and the Interface Tree separately.
    51  * Tree and the Interface Tree separately.
    51  *
    52  *
   103      * @param configuration the configuration of the doclet.
   104      * @param configuration the configuration of the doclet.
   104      * @param noDeprecated Don't add deprecated classes in the class tree, if
   105      * @param noDeprecated Don't add deprecated classes in the class tree, if
   105      * true.
   106      * true.
   106      */
   107      */
   107     public ClassTree(Configuration configuration, boolean noDeprecated) {
   108     public ClassTree(Configuration configuration, boolean noDeprecated) {
   108         configuration.message.notice("doclet.Building_Tree");
       
   109         this.configuration = configuration;
   109         this.configuration = configuration;
   110         this.utils = configuration.utils;
   110         this.utils = configuration.utils;
       
   111 
       
   112         Messages messages = configuration.getMessages();
       
   113         messages.notice("doclet.Building_Tree");
       
   114 
   111         comparator = utils.makeClassUseComparator();
   115         comparator = utils.makeClassUseComparator();
   112         baseAnnotationTypes = new TreeSet<>(comparator);
   116         baseAnnotationTypes = new TreeSet<>(comparator);
   113         baseEnums = new TreeSet<>(comparator);
   117         baseEnums = new TreeSet<>(comparator);
   114         baseClasses = new TreeSet<>(comparator);
   118         baseClasses = new TreeSet<>(comparator);
   115         baseInterfaces = new TreeSet<>(comparator);
   119         baseInterfaces = new TreeSet<>(comparator);