You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shenyu.apache.org by xi...@apache.org on 2022/01/02 03:00:00 UTC

[incubator-shenyu] branch master updated: fix dubbo batchSave problem (#2690)

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

xiaoyu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-shenyu.git


The following commit(s) were added to refs/heads/master by this push:
     new f464191  fix dubbo batchSave problem (#2690)
f464191 is described below

commit f4641912f0e5fca05d254cbf3e5e04a6b9140ffb
Author: AhahaGe <ah...@163.com>
AuthorDate: Sun Jan 2 10:59:53 2022 +0800

    fix dubbo batchSave problem (#2690)
---
 .../java/org/apache/shenyu/common/utils/ReflectUtils.java  | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/shenyu-common/src/main/java/org/apache/shenyu/common/utils/ReflectUtils.java b/shenyu-common/src/main/java/org/apache/shenyu/common/utils/ReflectUtils.java
index 4e7fc1c..7a16eb0 100644
--- a/shenyu-common/src/main/java/org/apache/shenyu/common/utils/ReflectUtils.java
+++ b/shenyu-common/src/main/java/org/apache/shenyu/common/utils/ReflectUtils.java
@@ -17,18 +17,18 @@
 
 package org.apache.shenyu.common.utils;
 
-import org.apache.commons.lang3.StringUtils;
-import org.apache.commons.lang3.Validate;
-import org.apache.shenyu.common.exception.ShenyuException;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
 import java.lang.reflect.Field;
 import java.lang.reflect.Method;
 import java.lang.reflect.Modifier;
 import java.util.Arrays;
 import java.util.Date;
+import java.util.List;
 import java.util.Objects;
+import org.apache.commons.lang3.StringUtils;
+import org.apache.commons.lang3.Validate;
+import org.apache.shenyu.common.exception.ShenyuException;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 
 /**
  * The type Reflect utils.
@@ -199,6 +199,6 @@ public class ReflectUtils {
      */
     public static boolean isPrimitive(final Class<?> cls) {
         return cls.isPrimitive() || cls == String.class || cls == Boolean.class || cls == Character.class
-                || Number.class.isAssignableFrom(cls) || Date.class.isAssignableFrom(cls);
+            || Number.class.isAssignableFrom(cls) || Date.class.isAssignableFrom(cls) || List.class.isAssignableFrom(cls);
     }
 }