RFR: JDK-6229853: BasicTextAreaUI:create incompletely documents the possible returned View types [v2]
Alexey Ivanov
aivanov at openjdk.org
Wed Sep 28 11:31:44 UTC 2022
On Wed, 28 Sep 2022 10:55:28 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:
>> API specification says about BasicTextAreaUI.create "Returns a WrappedPlainView or PlainView".
>> But for [bidi](https://github.com/openjdk/jdk/blob/d14e96d9701dae951aa365029f58afb6687a646a/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicTextAreaUI.java#L168) text, this method returns BoxView and other views , so the documentation needs to be updated.
>
> Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision:
>
> javadoc fix
Changes requested by aivanov (Reviewer).
src/java.desktop/share/classes/javax/swing/plaf/basic/BasicTextAreaUI.java line 140:
> 138:
> 139: /**
> 140: * Creates the view for an element.
Suggestion:
* Creates a view for an element.
It does not always return the same type of view.
-------------
PR: https://git.openjdk.org/jdk/pull/10376
More information about the client-libs-dev
mailing list