On Mon, 15 Mar 2021 04:23:26 GMT, Prasanta Sadhukhan <psadhuk...@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:
> 
>   javadoc change

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

> 658:     /**
> 659:      * Resets the UI property to a value from the current look and feel.
> 660:      * Since the default implementation of this method doesn't do 
> anything,

The reason why this method should be overridden is that the subclasses only can 
implement it properly, and it is not because the current method is empty.

Probably we can move the new text to the @implnote tag?

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

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

Reply via email to