diff options
author | Ahmed Ashour <asashour@yahoo.com> | 2017-10-10 12:06:27 +0200 |
---|---|---|
committer | Henri Sara <henri.sara@gmail.com> | 2017-10-10 13:06:27 +0300 |
commit | ab18b6c58ef819dbc0049c4713cf06209d5abc47 (patch) | |
tree | 84aec85fe2dbeae4b9b340481c5a18228c4ec296 /server/src/main/java/com/vaadin/ui/AbstractSingleComponentContainer.java | |
parent | 802bb98b851ab9b15617b283ccdba3dbc517ada6 (diff) | |
download | vaadin-framework-ab18b6c58ef819dbc0049c4713cf06209d5abc47.tar.gz vaadin-framework-ab18b6c58ef819dbc0049c4713cf06209d5abc47.zip |
Remove unneeded .toString() (#10141)
Diffstat (limited to 'server/src/main/java/com/vaadin/ui/AbstractSingleComponentContainer.java')
-rw-r--r-- | server/src/main/java/com/vaadin/ui/AbstractSingleComponentContainer.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/server/src/main/java/com/vaadin/ui/AbstractSingleComponentContainer.java b/server/src/main/java/com/vaadin/ui/AbstractSingleComponentContainer.java index 428e436399..32bc3c8e1d 100644 --- a/server/src/main/java/com/vaadin/ui/AbstractSingleComponentContainer.java +++ b/server/src/main/java/com/vaadin/ui/AbstractSingleComponentContainer.java @@ -323,9 +323,8 @@ public abstract class AbstractSingleComponentContainer extends AbstractComponent protected void readDesignChildren(Elements children, DesignContext context) { if (children.size() > 1) { - throw new DesignException( - "The container of type " + getClass().toString() - + " can have only one child component."); + throw new DesignException("The container of type " + getClass() + + " can have only one child component."); } else if (children.size() == 1) { setContent(context.readDesign(children.first())); } |