|
|
@ -186,11 +186,13 @@ public class ConfigurationPropertiesReportEndpoint extends
|
|
|
|
@SuppressWarnings("unchecked")
|
|
|
|
@SuppressWarnings("unchecked")
|
|
|
|
private Map<String, Object> sanitize(Map<String, Object> map) {
|
|
|
|
private Map<String, Object> sanitize(Map<String, Object> map) {
|
|
|
|
for (Map.Entry<String, Object> entry : map.entrySet()) {
|
|
|
|
for (Map.Entry<String, Object> entry : map.entrySet()) {
|
|
|
|
if (entry.getValue() instanceof Map) {
|
|
|
|
String key = entry.getKey();
|
|
|
|
map.put(entry.getKey(), sanitize((Map<String, Object>) entry.getValue()));
|
|
|
|
Object value = entry.getValue();
|
|
|
|
|
|
|
|
if (value instanceof Map) {
|
|
|
|
|
|
|
|
map.put(key, sanitize((Map<String, Object>) value));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|
map.put(entry.getKey(), this.sanitizer.sanitize(entry.getKey(), entry.getValue()));
|
|
|
|
map.put(key, this.sanitizer.sanitize(key, value));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return map;
|
|
|
|
return map;
|
|
|
|