6229853: BasicTextAreaUI:create incompletely documents the possible returned View types

Reviewed-by: aivanov, prr
This commit is contained in:
Prasanta Sadhukhan 2022-10-18 05:11:51 +00:00
parent 358ac07255
commit c33ca0c5ed
2 changed files with 4 additions and 5 deletions
src/java.desktop/share/classes/javax/swing/plaf/basic

@ -137,11 +137,10 @@ public class BasicTextAreaUI extends BasicTextUI {
}
/**
* Creates the view for an element. Returns a WrappedPlainView or
* PlainView.
* Creates a view for an element.
*
* @param elem the element
* @return the view
* @return the view for the element
*/
public View create(Element elem) {
Document doc = elem.getDocument();

@ -83,10 +83,10 @@ public class BasicTextFieldUI extends BasicTextUI {
}
/**
* Creates a view (FieldView) based on an element.
* Creates a view for an element.
*
* @param elem the element
* @return the view
* @return the view for the element
*/
public View create(Element elem) {
Document doc = elem.getDocument();