IGNITE-5414 Minor.

Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/f109e74f
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/f109e74f
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/f109e74f

Branch: refs/heads/ignite-5414
Commit: f109e74f7aaa3f7a39ab706e3ab902cb98f49072
Parents: e734581
Author: Alexey Kuznetsov <akuznet...@apache.org>
Authored: Fri Jun 9 14:02:56 2017 +0700
Committer: Alexey Kuznetsov <akuznet...@apache.org>
Committed: Fri Jun 9 14:02:56 2017 +0700

----------------------------------------------------------------------
 .../java/org/apache/ignite/console/agent/AgentUtils.java | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/f109e74f/modules/web-console/web-agent/src/main/java/org/apache/ignite/console/agent/AgentUtils.java
----------------------------------------------------------------------
diff --git 
a/modules/web-console/web-agent/src/main/java/org/apache/ignite/console/agent/AgentUtils.java
 
b/modules/web-console/web-agent/src/main/java/org/apache/ignite/console/agent/AgentUtils.java
index 741ce81..797951c 100644
--- 
a/modules/web-console/web-agent/src/main/java/org/apache/ignite/console/agent/AgentUtils.java
+++ 
b/modules/web-console/web-agent/src/main/java/org/apache/ignite/console/agent/AgentUtils.java
@@ -39,6 +39,11 @@ public class AgentUtils {
     /** JSON object mapper. */
     private static final ObjectMapper MAPPER = new ObjectMapper();
 
+    static {
+        // Register special module with basic serializers.
+        MAPPER.registerModule(new JsonOrgModule());
+    }
+
     /** */
     private static final Ack NOOP_CB = new Ack() {
         @Override public void call(Object... args) {
@@ -49,12 +54,6 @@ public class AgentUtils {
         }
     };
 
-    static {
-        JsonOrgModule module = new JsonOrgModule();
-
-        MAPPER.registerModule(module);
-    }
-
     /**
      * Default constructor.
      */

Reply via email to