mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-12-25 18:47:44 +01:00
Fix broken recursive dump in DataReport.
This commit is contained in:
parent
4333b39377
commit
bab98d5463
@ -103,7 +103,7 @@ private static String getStringValue(Object value, Set<Object> seen) {
|
|||||||
} else {
|
} else {
|
||||||
builder.append("\n");
|
builder.append("\n");
|
||||||
}
|
}
|
||||||
builder.append(getStringValue(entry, seen));
|
builder.append(getStringValue(entry, Sets.newHashSet(seen)));
|
||||||
}
|
}
|
||||||
return builder.toString();
|
return builder.toString();
|
||||||
} else if (value instanceof Map<?, ?>) {
|
} else if (value instanceof Map<?, ?>) {
|
||||||
@ -116,7 +116,7 @@ private static String getStringValue(Object value, Set<Object> seen) {
|
|||||||
builder.append("\n");
|
builder.append("\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
String key = getStringValue(entry.getKey(), seen).replaceAll("[\r\n]", "");
|
String key = getStringValue(entry.getKey(), Sets.newHashSet(seen)).replaceAll("[\r\n]", "");
|
||||||
if (key.length() > 60) {
|
if (key.length() > 60) {
|
||||||
key = key.substring(0, 60) + "...";
|
key = key.substring(0, 60) + "...";
|
||||||
}
|
}
|
||||||
@ -124,7 +124,7 @@ private static String getStringValue(Object value, Set<Object> seen) {
|
|||||||
builder
|
builder
|
||||||
.append(key)
|
.append(key)
|
||||||
.append(": ")
|
.append(": ")
|
||||||
.append(getStringValue(entry.getValue(), seen));
|
.append(getStringValue(entry.getValue(), Sets.newHashSet(seen)));
|
||||||
}
|
}
|
||||||
return builder.toString();
|
return builder.toString();
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user