From 72fff2459f1b887bb81758494f1f17689fd05f02 Mon Sep 17 00:00:00 2001 From: weihu Date: Tue, 28 Jun 2022 14:02:27 +0800 Subject: [PATCH] optimization fefreshScop --- .../java/com/tencent/cloud/common/util/JacksonUtils.java | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) 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); }