Skip to content

Commit e0ba764

Browse files
committed
Fix dump format for mulitple instances of the same root class
1 parent 3772c46 commit e0ba764

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

common/src/main/java/de/bluecolored/bluemap/common/debug/StateDumper.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,11 @@ public void dump(Path file) throws IOException {
6464

6565
Set<Object> alreadyDumped = Collections.newSetFromMap(new IdentityHashMap<>());
6666

67-
writer.name("dump").beginObject();
67+
writer.name("dump").beginArray();
6868
for (Object instance : instances) {
69-
Class<?> type = instance.getClass();
70-
writer.name(type.getName());
7169
dumpInstance(instance, writer, alreadyDumped);
7270
}
73-
writer.endObject();
71+
writer.endArray();
7472

7573
writer.name("threads").beginArray();
7674
Thread.getAllStackTraces().keySet().stream()

0 commit comments

Comments
 (0)