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

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;
}