RFR: 8012675: Javadoc for javax.swing.text.html.parser.Parser.handleComment() needs to be updated [v8]

Alexey Ivanov aivanov at openjdk.java.net
Tue Jun 7 19:19:45 UTC 2022


On Mon, 6 Jun 2022 20:45:46 GMT, Damon Nguyen <dnguyen at openjdk.org> wrote:

>> Updated Parser class doc by appending to the doc regarding lack of support for HTML script tags. Adding this information to the "parse" function did not seem as consistent for formatting as adding it to the Parser class doc.
>
> Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Changed doc text.

test/jdk/javax/swing/text/html/HtmlTagParserTest.java line 65:

> 63:             InvocationTargetException {
> 64:         SwingUtilities.invokeAndWait(() -> {
> 65:             jep = new JEditorPane();

Suggestion:

            jep = new JEditorPane("text/html", htmlText);


It produces the same result as loading the HTML from a temporary file.

test/jdk/javax/swing/text/html/HtmlTagParserTest.java line 83:

> 81:     }
> 82: 
> 83:     public static void main(String args[]) throws InterruptedException,

Suggestion:

    public static void main(String[] args) throws InterruptedException,


Please use Java-style array declaration.

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

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



More information about the client-libs-dev mailing list