RFR: JDK-8253735: Cleanup SearchIndexItem API

Jonathan Gibbons jjg at openjdk.java.net
Tue Oct 6 16:28:11 UTC 2020


On Tue, 6 Oct 2020 14:52:33 GMT, Jonathan Gibbons <jjg at openjdk.org> wrote:

>> src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/Links.java line 289:
>> 
>>> 287:         String a = isProperty
>>> 288:                 ? executableElement.getSimpleName().toString()
>>> 289:                 : executableElement.getSimpleName()
>> 
>> I guess `getSimpleName()` returns `"<init>"` for constructor elements? The old code handled that case explicitly.
>
> Yes, this is explicitly defined in `Element.getSimpleName`
> https://docs.oracle.com/en/java/javase/14/docs/api/java.compiler/javax/lang/model/element/Element.html#getSimpleName()

Added `IndexItem.getItems(DocTree.Kind kind)`

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

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


More information about the javadoc-dev mailing list