summaryrefslogtreecommitdiffstats
path: root/shared
diff options
context:
space:
mode:
Diffstat (limited to 'shared')
-rw-r--r--shared/src/main/java/com/vaadin/shared/ui/ComponentStateUtil.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/shared/src/main/java/com/vaadin/shared/ui/ComponentStateUtil.java b/shared/src/main/java/com/vaadin/shared/ui/ComponentStateUtil.java
index 883ade868e..0ef247353b 100644
--- a/shared/src/main/java/com/vaadin/shared/ui/ComponentStateUtil.java
+++ b/shared/src/main/java/com/vaadin/shared/ui/ComponentStateUtil.java
@@ -29,16 +29,16 @@ public final class ComponentStateUtil implements Serializable {
}
public static final boolean isUndefinedWidth(AbstractComponentState state) {
- return state.width == null || "".equals(state.width);
+ return state.width == null || state.width.isEmpty();
}
public static final boolean isUndefinedHeight(
AbstractComponentState state) {
- return state.height == null || "".equals(state.height);
+ return state.height == null || state.height.isEmpty();
}
public static final boolean hasDescription(AbstractComponentState state) {
- return state.description != null && !"".equals(state.description);
+ return state.description != null && !state.description.isEmpty();
}
public static final boolean hasStyles(AbstractComponentState state) {