aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2012-05-11 22:24:47 +0300
committerArtur Signell <artur@vaadin.com>2012-05-13 20:35:35 +0300
commit916da28e85f8bd596c5155e193edd06fc86477fd (patch)
treeb6ca16e93ce05f92961a1f056cb41a22620e3a63 /src
parent4c1e41416b0e62ef7265be928d18b77e3b663ecf (diff)
downloadvaadin-framework-916da28e85f8bd596c5155e193edd06fc86477fd.tar.gz
vaadin-framework-916da28e85f8bd596c5155e193edd06fc86477fd.zip
Initialize all variables in constructor instead of while loading the
class (allows tests to use static methods without being GWT tests)
Diffstat (limited to 'src')
-rw-r--r--src/com/vaadin/terminal/gwt/client/ApplicationConnection.java4
1 files changed, 2 insertions, 2 deletions
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) {