diff --git a/spring-cloud-tencent-commons/src/main/java/com/tencent/cloud/common/util/JacksonUtils.java b/spring-cloud-tencent-commons/src/main/java/com/tencent/cloud/common/util/JacksonUtils.java index a0987a399..15ca7163b 100644 --- a/spring-cloud-tencent-commons/src/main/java/com/tencent/cloud/common/util/JacksonUtils.java +++ b/spring-cloud-tencent-commons/src/main/java/com/tencent/cloud/common/util/JacksonUtils.java @@ -17,12 +17,6 @@ package com.tencent.cloud.common.util; -import java.lang.reflect.Array; -import java.lang.reflect.GenericArrayType; -import java.lang.reflect.ParameterizedType; -import java.lang.reflect.Type; -import java.lang.reflect.TypeVariable; -import java.lang.reflect.WildcardType; import java.util.HashMap; import java.util.Map; @@ -95,7 +89,8 @@ public final class JacksonUtils { public static T json2JavaBean(String content, Class valueType) { try { return OM.readValue(content, valueType); - } catch (Exception e) { + } + catch (Exception e) { LOG.error("Object to Json failed. {}", content, e); throw new RuntimeException("Object to Json failed.", e); }