Commit 758920da authored by duanruiming's avatar duanruiming

[update] 单例添加私有构造方法

parent d3e230c4
...@@ -9,6 +9,7 @@ import com.fasterxml.jackson.databind.ObjectMapper; ...@@ -9,6 +9,7 @@ import com.fasterxml.jackson.databind.ObjectMapper;
*/ */
public class JacksonUtils { public class JacksonUtils {
private static final ObjectMapper mapper = new ObjectMapper(); private static final ObjectMapper mapper = new ObjectMapper();
private JacksonUtils() {}
public static ObjectMapper getInstance() { public static ObjectMapper getInstance() {
return mapper; return mapper;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment