From: Artur Signell Date: Fri, 11 May 2012 19:24:47 +0000 (+0300) Subject: Initialize all variables in constructor instead of while loading the X-Git-Tag: 7.0.0.alpha3~241 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=916da28e85f8bd596c5155e193edd06fc86477fd;p=vaadin-framework.git Initialize all variables in constructor instead of while loading the class (allows tests to use static methods without being GWT tests) --- diff --git a/src/com/vaadin/terminal/gwt/client/ApplicationConnection.java b/src/com/vaadin/terminal/gwt/client/ApplicationConnection.java index 924a8924fe..51a0ec3f02 100644 --- a/src/com/vaadin/terminal/gwt/client/ApplicationConnection.java +++ b/src/com/vaadin/terminal/gwt/client/ApplicationConnection.java @@ -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) {