ObjectView support enum. close #454

This commit is contained in:
hengyunabc 2019-01-17 15:09:00 +08:00
parent d1d1d2bc15
commit 5e31fd39f9

View File

@ -571,6 +571,10 @@ public class ObjectView implements View {
appendStringBuilder(buf, format("@%s[%s]", className, new SimpleDateFormat("yyyy-MM-dd HH:mm:ss,SSS").format(obj)));
}
else if (object instanceof Enum<?>) {
appendStringBuilder(buf, format("@%s[%s]", className, obj));
}
// 普通Object输出
else {