<Swing Dev> [14] RFR JDK-7020860 - BasicTreeUI contains getters/setters with unclear spec

Sergey Bylokhov Sergey.Bylokhov at oracle.com
Mon Dec 16 06:13:09 UTC 2019


> I would suggest to update the spec for BasicTreeUI.setLargeModel() as following

Note that the first sentence(before the first dot) is used as a summary of the method by the javadoc tool,
see "Method Summary" block:
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/plaf/basic/BasicTreeUI.html

==========
protected void 	setLargeModel​(boolean largeModel) Updates the componentListener, if necessary.
==========

It would be good to make the summary above more meaningful.

> 
> /**
> * Updates the componentListener, if necessary.
> *
> * Called when the {@code largeModel} property is changed in the drawn tree
> * component.
> *
> * @param largeModel the new value of the {@code largeModel} property
> */
> 
> 
> Regards
> Tejpal


-- 
Best regards, Sergey.


More information about the swing-dev mailing list