aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/main/java/com/vaadin/ui/ComponentRootSetter.java
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/main/java/com/vaadin/ui/ComponentRootSetter.java')
-rw-r--r--server/src/main/java/com/vaadin/ui/ComponentRootSetter.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/server/src/main/java/com/vaadin/ui/ComponentRootSetter.java b/server/src/main/java/com/vaadin/ui/ComponentRootSetter.java
index fe0a8e6a88..92116e49df 100644
--- a/server/src/main/java/com/vaadin/ui/ComponentRootSetter.java
+++ b/server/src/main/java/com/vaadin/ui/ComponentRootSetter.java
@@ -52,7 +52,8 @@ public class ComponentRootSetter implements Serializable {
}
/**
- * Checks if the given custom component or composite may accept a root component.
+ * Checks if the given custom component or composite may accept a root
+ * component.
* <p>
* For internal use only.
*
@@ -63,11 +64,11 @@ public class ComponentRootSetter implements Serializable {
*
*/
public static boolean canSetRoot(Component customComponent) {
- if(customComponent instanceof CustomComponent) {
+ if (customComponent instanceof CustomComponent) {
return true;
}
- if(customComponent instanceof Composite) {
- return ((Composite)customComponent).getCompositionRoot() == null;
+ if (customComponent instanceof Composite) {
+ return ((Composite) customComponent).getCompositionRoot() == null;
}
return false;
}