You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by li...@apache.org on 2018/10/23 08:43:15 UTC

[incubator-servicecomb-java-chassis] 01/02: [SCB-965] mostly only need one ObjectMapper instance

This is an automated email from the ASF dual-hosted git repository.

liubao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-servicecomb-java-chassis.git

commit 7831a83b4f9bac61ff0ac24199e49625aa75f699
Author: wujimin <wu...@huawei.com>
AuthorDate: Thu Oct 18 12:10:48 2018 +0800

    [SCB-965] mostly only need one ObjectMapper instance
---
 .../apache/servicecomb/common/rest/codec/RestObjectMapperFactory.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/common-rest/src/main/java/org/apache/servicecomb/common/rest/codec/RestObjectMapperFactory.java b/common/common-rest/src/main/java/org/apache/servicecomb/common/rest/codec/RestObjectMapperFactory.java
index c6d5d65..8bbad59 100644
--- a/common/common-rest/src/main/java/org/apache/servicecomb/common/rest/codec/RestObjectMapperFactory.java
+++ b/common/common-rest/src/main/java/org/apache/servicecomb/common/rest/codec/RestObjectMapperFactory.java
@@ -23,7 +23,7 @@ package org.apache.servicecomb.common.rest.codec;
 public class RestObjectMapperFactory {
   private static AbstractRestObjectMapper defaultMapper = new RestObjectMapper();
 
-  private static AbstractRestObjectMapper consumerWriterMapper = new RestObjectMapper();
+  private static AbstractRestObjectMapper consumerWriterMapper = defaultMapper;
 
   public static AbstractRestObjectMapper getConsumerWriterMapper() {
     return consumerWriterMapper;