On Tue, 1 Mar 2022 20:13:30 GMT, Alexey Ivanov <aiva...@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

Reply via email to