From 8b94b1aeca0e8d7cdd2d13d2f9ba32264b310ac2 Mon Sep 17 00:00:00 2001 From: Leif Åstrand Date: Wed, 12 Apr 2017 13:48:10 +0300 Subject: Use setCaption Javadocs inherited from Component (#9066) Component.setCaption has thorough Javadocs that are shadowed by a very brief snippet in AbstractComponent and an erroneous description in Panel. By removing those snippets, component classes will instead inherit a much more useful description of the method. --- server/src/main/java/com/vaadin/ui/AbstractComponent.java | 7 ------- server/src/main/java/com/vaadin/ui/Panel.java | 9 --------- 2 files changed, 16 deletions(-) (limited to 'server/src/main/java/com/vaadin') diff --git a/server/src/main/java/com/vaadin/ui/AbstractComponent.java b/server/src/main/java/com/vaadin/ui/AbstractComponent.java index 93d9a23851..c31331c3e4 100644 --- a/server/src/main/java/com/vaadin/ui/AbstractComponent.java +++ b/server/src/main/java/com/vaadin/ui/AbstractComponent.java @@ -290,13 +290,6 @@ public abstract class AbstractComponent extends AbstractClientConnector return getState(false).caption; } - /** - * Sets the component's caption String. Caption is the visible - * name of the component. - * - * @param caption - * the new caption String for the component. - */ @Override public void setCaption(String caption) { getState().caption = caption; diff --git a/server/src/main/java/com/vaadin/ui/Panel.java b/server/src/main/java/com/vaadin/ui/Panel.java index 13d2b4027e..06d4daa9c3 100644 --- a/server/src/main/java/com/vaadin/ui/Panel.java +++ b/server/src/main/java/com/vaadin/ui/Panel.java @@ -100,15 +100,6 @@ public class Panel extends AbstractSingleComponentContainer setCaption(caption); } - /** - * Sets the caption of the panel. - * - * Note that the caption is interpreted as HTML and therefore care should be - * taken not to enable HTML injection and XSS attacks using panel captions. - * This behavior may change in future versions. - * - * @see AbstractComponent#setCaption(String) - */ @Override public void setCaption(String caption) { super.setCaption(caption); -- cgit v1.2.3