]> source.dussan.org Git - vaadin-framework.git/commitdiff
Avoid unnecessary spaces in UIDL
authorArtur Signell <artur@vaadin.com>
Mon, 23 Apr 2012 18:48:21 +0000 (21:48 +0300)
committerArtur Signell <artur@vaadin.com>
Fri, 11 May 2012 19:18:21 +0000 (22:18 +0300)
src/com/vaadin/terminal/gwt/server/JsonPaintTarget.java

index 0140c0f799e12434085a50227649e83be5f6b4ab..def334290eaee7673c6313a7dc28be3708deaa16 100644 (file)
@@ -387,7 +387,7 @@ public class JsonPaintTarget implements PaintTarget {
                     "Parameters must be non-null strings");
         }
 
-        tag.addAttribute("\"" + name + "\": \"" + escapeJSON(value) + "\"");
+        tag.addAttribute("\"" + name + "\":\"" + escapeJSON(value) + "\"");
 
         if (customLayoutArgumentsOpen && "template".equals(name)) {
             getUsedResources().add("layouts/" + value + ".html");
@@ -411,7 +411,7 @@ public class JsonPaintTarget implements PaintTarget {
         StringBuilder sb = new StringBuilder();
         sb.append("\"");
         sb.append(name);
-        sb.append("\": ");
+        sb.append("\":");
         sb.append("{");
         for (Iterator<?> it = value.keySet().iterator(); it.hasNext();) {
             Object key = it.next();