RFR: 8285488: Improve DocFinder [v3]

Pavel Rappo prappo at openjdk.org
Mon Nov 14 13:51:32 UTC 2022


On Mon, 24 Oct 2022 20:14:46 GMT, Jonathan Gibbons <jjg at openjdk.org> wrote:

>> Pavel Rappo has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   fix: test failed due to filesystem handling issues
>>   
>>   Filed 8295543 to track that filesystem issue and fixed the test to make
>>   sure the package cannot be confused with the type parameter, whose
>>   name is not pertinent to the test anyway.
>
> src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/TagletWriterImpl.java line 835:
> 
>> 833:         linkInfo.excludeTypeBounds = true;
>> 834:         var link = htmlWriter.getLink(linkInfo);
>> 835:         var concat = new ContentBuilder(HtmlTree.CODE(link));
> 
> hmmm, do you actually need the `CODE` here?

Mainline has it too. It's so that the exception class or exception-type type variable is output in `<code>...</code>`. For example,


<a href="IndexOutOfBoundsException.html" title="class in java.lang">IndexOutOfBoundsException</a>

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

PR: https://git.openjdk.org/jdk/pull/10746


More information about the javadoc-dev mailing list