aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorAhmed Ashour <asashour@yahoo.com>2017-09-13 12:35:24 +0200
committerHenri Sara <henri.sara@gmail.com>2017-09-13 14:32:50 +0300
commit03349e8c6697d668e675e628783b52eef39b877b (patch)
tree3fea8507c1cdf457b0c47bdd4970ed7c07cc39c7 /server
parent29cc151f37ee6e56910d6bb80ade321f08b26486 (diff)
downloadvaadin-framework-03349e8c6697d668e675e628783b52eef39b877b.tar.gz
vaadin-framework-03349e8c6697d668e675e628783b52eef39b877b.zip
Simplify boolean expressions
Diffstat (limited to 'server')
-rw-r--r--server/src/main/java/com/vaadin/server/JsonPaintTarget.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/main/java/com/vaadin/server/JsonPaintTarget.java b/server/src/main/java/com/vaadin/server/JsonPaintTarget.java
index 905dc03246..f7669ef135 100644
--- a/server/src/main/java/com/vaadin/server/JsonPaintTarget.java
+++ b/server/src/main/java/com/vaadin/server/JsonPaintTarget.java
@@ -876,7 +876,7 @@ public class JsonPaintTarget implements PaintTarget {
@Override
public String getJsonPresentation() {
- return "\"" + name + "\":" + (value == true ? "true" : "false");
+ return "\"" + name + "\":" + (value ? "true" : "false");
}
}