Commit 08beb042 by 303514581@qq.com

2019/5/14 Tools isEmpty方法对Map特殊判断添加

parent 64d316f6
...@@ -38,6 +38,7 @@ import javax.crypto.SecretKey; ...@@ -38,6 +38,7 @@ import javax.crypto.SecretKey;
import javax.crypto.spec.SecretKeySpec; import javax.crypto.spec.SecretKeySpec;
import org.apache.commons.collections.CollectionUtils; import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.collections.MapUtils;
import org.apache.commons.lang.RandomStringUtils; import org.apache.commons.lang.RandomStringUtils;
import org.apache.commons.lang.StringEscapeUtils; import org.apache.commons.lang.StringEscapeUtils;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
...@@ -1032,6 +1033,9 @@ public class Tools { ...@@ -1032,6 +1033,9 @@ public class Tools {
if ((obj instanceof String)) { if ((obj instanceof String)) {
return StringUtils.isEmpty((String) obj); return StringUtils.isEmpty((String) obj);
} }
if ((obj instanceof Map)) {
return MapUtils.isEmpty((Map) obj);
}
return false; return false;
} }
......
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