< prev index next >

src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/CommentUtils.java

Print this page

        

*** 221,230 **** --- 221,241 ---- // A method having null comment (no comment) that might need to be replaced // with a synthetic comment, remove such a comment from the cache. utils.removeCommentHelper(element); } + public void setAccessorCommentTree(Element element, List<DocTree> fullBody, + List<DocTree> blockTags, Utils utils) { + DocCommentTree docTree = treeFactory.newDocCommentTree(fullBody, blockTags); + TreePath pathToEncl = utils.docTrees.getPath(element.getEnclosingElement()); + dcTreesMap.put(element, new DocCommentDuo(pathToEncl, docTree)); + // There maybe an entry with the original comments usually null, + // therefore remove that entry if it exists, and allow a new one + // to be reestablished. + utils.removeCommentHelper(element); + } + /** * A simplistic container to transport a TreePath, DocCommentTree pair. * Here is why we need this: * a. not desirable to add javac's pair. * b. DocTreePath is not a viable option either, as a null TreePath is required
< prev index next >