This commit is contained in:
maxf 2019-01-02 14:48:55 +08:00
parent 5129cdd162
commit 93488c6fff
3 changed files with 8 additions and 2 deletions

View File

@ -1,6 +1,12 @@
yexuejc-base 更新记录
------------------
#### version 1.3.2
**time2019-1-2 14:06:47** <br/>
**branch** master <br/>
**update** <br/>
>1. objUtil 枚举类型修复
#
#### version 1.3.1
**time2019-1-2 14:06:47** <br/>
**branch** master <br/>

View File

@ -6,7 +6,7 @@
<groupId>top.yexuejc</groupId>
<artifactId>yexuejc-base</artifactId>
<version>1.3.1</version>
<version>1.3.2</version>
<name>${project.artifactId}</name>
<url>https://github.com/yexuejc/yexuejc-base</url>

View File

@ -116,7 +116,7 @@ public class ObjUtil {
}
}
Object o = f.get(obj);
if (null == o || o.getClass().isPrimitive() || o instanceof String) {
if (null == o || o.getClass().isPrimitive() || o instanceof String || o instanceof Enum) {
if (null == o && !putNull) {
continue;
}