langtools/src/jdk.javadoc/share/classes/com/sun/tools/javadoc/DocImpl.java
changeset 31752 a4ea4c9bce2f
parent 25874 83c19f00452c
equal deleted inserted replaced
31751:ec251536a004 31752:a4ea4c9bce2f
   127     Comment comment() {
   127     Comment comment() {
   128         if (comment == null) {
   128         if (comment == null) {
   129             String d = documentation();
   129             String d = documentation();
   130             if (env.doclint != null
   130             if (env.doclint != null
   131                     && treePath != null
   131                     && treePath != null
       
   132                     && env.shouldCheck(treePath.getCompilationUnit())
   132                     && d.equals(getCommentText(treePath))) {
   133                     && d.equals(getCommentText(treePath))) {
   133                 env.doclint.scan(treePath);
   134                 env.doclint.scan(treePath);
   134             }
   135             }
   135             comment = new Comment(this, d);
   136             comment = new Comment(this, d);
   136         }
   137         }