< prev index next >

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

Print this page

        

*** 149,160 **** return (doclint == null); } /* * TODO: This method exists because of a bug in javac which does not ! * handle "@deprecated tag in package-info.java", when this issue ! * is fixed this method and its uses must be jettisoned. */ public boolean isDeprecated0(Element e) { if (!utils.getDeprecatedTrees(e).isEmpty()) { return true; } --- 149,160 ---- return (doclint == null); } /* * TODO: This method exists because of a bug in javac which does not ! * handle "@deprecated tag in package-info.java", when this issue ! * is fixed this method and its uses must be jettisoned. */ public boolean isDeprecated0(Element e) { if (!utils.getDeprecatedTrees(e).isEmpty()) { return true; }
*** 181,191 **** public Map<Element, TreePath> getElementToTreePath() { return toolEnv.elementToTreePath; } // TODO: we need ElementUtils.getPackage to cope with input strings ! // to return the proper unnamedPackage for all supported releases. PackageElement getUnnamedPackage() { return (Feature.MODULES.allowedInSource(toolEnv.source)) ? toolEnv.syms.unnamedModule.unnamedPackage : toolEnv.syms.noModule.unnamedPackage; } --- 181,191 ---- public Map<Element, TreePath> getElementToTreePath() { return toolEnv.elementToTreePath; } // TODO: we need ElementUtils.getPackage to cope with input strings ! // to return the proper unnamedPackage for all supported releases. PackageElement getUnnamedPackage() { return (Feature.MODULES.allowedInSource(toolEnv.source)) ? toolEnv.syms.unnamedModule.unnamedPackage : toolEnv.syms.noModule.unnamedPackage; }
< prev index next >