diff options
author | Ahmed Ashour <asashour@yahoo.com> | 2017-09-21 10:51:51 +0200 |
---|---|---|
committer | Henri Sara <henri.sara@gmail.com> | 2017-09-21 11:51:51 +0300 |
commit | 867006d2f81aa813c36f614fc6f1b98a5937c5f3 (patch) | |
tree | fb2c34b1b58db8b3610a4a47010196069e90c436 /client-compiler | |
parent | 719b12e44afc8b62458b1e29d1503e28544acc24 (diff) | |
download | vaadin-framework-867006d2f81aa813c36f614fc6f1b98a5937c5f3.tar.gz vaadin-framework-867006d2f81aa813c36f614fc6f1b98a5937c5f3.zip |
Use String.isEmpty() (#10045)
Diffstat (limited to 'client-compiler')
-rw-r--r-- | client-compiler/src/main/java/com/vaadin/tools/ReportUsage.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client-compiler/src/main/java/com/vaadin/tools/ReportUsage.java b/client-compiler/src/main/java/com/vaadin/tools/ReportUsage.java index 864582546b..4057c531d6 100644 --- a/client-compiler/src/main/java/com/vaadin/tools/ReportUsage.java +++ b/client-compiler/src/main/java/com/vaadin/tools/ReportUsage.java @@ -143,7 +143,7 @@ public class ReportUsage { appendUserAgentProperty(extra, "os.name"); appendUserAgentProperty(extra, "os.version"); - if (extra.length() > 0) { + if (extra.length() != 0) { userAgent += " (" + extra.toString() + ")"; } @@ -154,7 +154,7 @@ public class ReportUsage { String propName) { String propValue = System.getProperty(propName); if (propValue != null) { - if (sb.length() > 0) { + if (sb.length() != 0) { sb.append(';').append(' '); } sb.append(propName); |