RFR: 8282756: Make ElementKind checks more specific

Jonathan Gibbons jjg at openjdk.java.net
Tue Mar 8 17:56:58 UTC 2022


On Tue, 8 Mar 2022 17:50:58 GMT, Jonathan Gibbons <jjg at openjdk.org> wrote:

>> Out of all executable elements, inherit documentation only for methods.
>
> src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/util/Utils.java line 288:
> 
>> 286:     }
>> 287: 
>> 288:     public boolean isAnnotationInterface(Element e) {
> 
> Should the parameter be a `TypeElement` ?

I guess maybe not, since it is often called with the result of `getEnclosingElement`

-------------

PR: https://git.openjdk.java.net/jdk/pull/7747


More information about the javadoc-dev mailing list