RFR: JDK-8267574: Dead code in HtmlStyle/HtmlDocletWriter [v2]

Jonathan Gibbons jjg at openjdk.java.net
Tue May 25 21:54:08 UTC 2021


On Tue, 25 May 2021 14:57:58 GMT, Jonathan Gibbons <jjg at openjdk.org> wrote:

>> src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/resources/stylesheet.css line 580:
>> 
>>> 578:     display:inline-block;
>>> 579: }
>>> 580: div.block div.deprecation-comment, div.block div.block span.emphasized-phrase {
>> 
>> A quick search through the code and generated docs suggests that `emphasized-phrase` is unused as well. Should this also be removed?
>
> Let me investigate a test program  to compare the class names in the style sheet and the members of HtmlStyle, and then decide whether to merge that here or do a separate commit/PR.

Test program reveals differences that need to be investigated. 
See https://bugs.openjdk.java.net/browse/JDK-8267709

For now, I've just removed `emphasized-phrase`

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

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


More information about the javadoc-dev mailing list