mirror of
https://github.com/alibaba/arthas.git
synced 2026-11-30 07:32:57 +00:00
ObjectView support enum. close #454
This commit is contained in:
1 parent
d1d1d2bc15
commit
5e31fd39f9
1 file changed
+4
@@ -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 {
|
||||
|
||||
|
||||
Reference in new issue
Block a user