From 55530edec19e2bdf478a1e0dc782012754866adf Mon Sep 17 00:00:00 2001 From: Peter Lehto Date: Wed, 1 Mar 2017 13:29:51 +0200 Subject: Remove unnecessary override and correct javadoc typo (#8716) Fixes #8715 --- server/src/main/java/com/vaadin/ui/AbstractTextField.java | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'server/src/main/java/com/vaadin/ui') diff --git a/server/src/main/java/com/vaadin/ui/AbstractTextField.java b/server/src/main/java/com/vaadin/ui/AbstractTextField.java index 9da5e9eedc..827550fe1d 100644 --- a/server/src/main/java/com/vaadin/ui/AbstractTextField.java +++ b/server/src/main/java/com/vaadin/ui/AbstractTextField.java @@ -84,7 +84,7 @@ public abstract class AbstractTextField extends AbstractField /** * Sets the value of this text field. If the new value is not equal to * {@code getValue()}, fires a {@link ValueChangeEvent}. Throws - * {@code NullPointerException} if the value is not null. + * {@code NullPointerException} if the value is null. * * @param value * the new value, not {@code null} @@ -270,14 +270,6 @@ public abstract class AbstractTextField extends AbstractField getState().text = value; } - /** - * Clears the value of this field. - */ - @Override - public void clear() { - setValue(""); - } - @Override public void writeDesign(Element design, DesignContext designContext) { super.writeDesign(design, designContext); -- cgit v1.2.3