<Swing Dev> RFR: 8263472: Specification of JComponent::updateUI should document that the default implementation does nothing [v8]

Phil Race prr at openjdk.java.net
Wed Mar 24 20:10:42 UTC 2021


On Wed, 24 Mar 2021 04:22:56 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:

>> It's unclear from the spec that the original implementation of the method JComponent.updateUI() does nothing which needs to be explicitly stated in the javadoc.
>
> Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Add @implSpec as per JoeDarcy's recommendation

src/java.desktop/share/classes/javax/swing/JComponent.java line 670:

> 668:      *
> 669:      * @implSpec The default implementation of this method doesn't do anything.
> 670:      *

I prefer "does nothing"

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

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


More information about the swing-dev mailing list