aboutsummaryrefslogtreecommitdiffstats
path: root/shared
diff options
context:
space:
mode:
authorAhmed Ashour <asashour@yahoo.com>2017-09-18 23:16:02 +0200
committerHenri Sara <henri.sara@gmail.com>2017-09-19 14:25:46 +0300
commitf6e082f5172d791a49d98a6b6b7770d3b38c8695 (patch)
tree439c6d53e57e8b24f81f341eb0fc93583a3c42bd /shared
parentd8baecb239b0d91f477c450d2a08a472b169a08d (diff)
downloadvaadin-framework-f6e082f5172d791a49d98a6b6b7770d3b38c8695.tar.gz
vaadin-framework-f6e082f5172d791a49d98a6b6b7770d3b38c8695.zip
Use String.isEmpty()
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) {