]> source.dussan.org Git - vaadin-framework.git/commitdiff
Initialize all variables in constructor instead of while loading the
authorArtur Signell <artur@vaadin.com>
Fri, 11 May 2012 19:24:47 +0000 (22:24 +0300)
committerArtur Signell <artur@vaadin.com>
Sun, 13 May 2012 17:35:35 +0000 (20:35 +0300)
class (allows tests to use static methods without being GWT tests)

src/com/vaadin/terminal/gwt/client/ApplicationConnection.java

index 924a8924fe10ca1b9946d4c80dea34ad09e2fe81..51a0ec3f020767034a17b068904c2e9269a3e311 100644 (file)
@@ -102,8 +102,7 @@ public class ApplicationConnection {
 
     public static final String PARAM_UNLOADBURST = "onunloadburst";
 
-    private static SerializerMap serializerMap = GWT
-            .create(SerializerMap.class);
+    private static SerializerMap serializerMap;
 
     /**
      * A string that, if found in a non-JSON response to a UIDL request, will
@@ -200,6 +199,7 @@ public class ApplicationConnection {
         rpcManager = GWT.create(RpcManager.class);
         layoutManager = GWT.create(LayoutManager.class);
         layoutManager.setConnection(this);
+        serializerMap = GWT.create(SerializerMap.class);
     }
 
     public void init(WidgetSet widgetSet, ApplicationConfiguration cnf) {