RFR: 8282473: Refactor swing classes javadoc to use @throws instead of @exception

Alexey Ivanov aivanov at openjdk.java.net
Wed Mar 2 16:22:01 UTC 2022


On Tue, 1 Mar 2022 20:13:30 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:

>> Prevailing JDK coding practices use "@throws" rather than "@exception".
>> Refactor existing swing classes javadoc to use @throws
>
> src/java.desktop/share/classes/javax/swing/JRootPane.java line 582:
> 
>> 580:      * @param content the <code>Container</code> to use for component-contents
>> 581:      * @throws java.awt.IllegalComponentStateException (a runtime
>> 582:      *            exception) if the content pane parameter is <code>null</code>
> 
> Shall we remove _“(a runtime exception)”_ note?

Submitted [JDK-8282562](https://bugs.openjdk.java.net/browse/JDK-8282562): Remove "(a runtime exception)" from javadoc for unchecked exceptions in java.desktop

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

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



More information about the client-libs-dev mailing list