Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,9 @@ public static void serialize(Properties props, String key, Object value) {
for (Iterator it = collection.iterator(); it.hasNext(); i++) {
serialize(props, key + "." + i, it.next());
}
} else if (value instanceof Map) {
Map map = (Map) value;
} else if (value instanceof Map<?, ?> map) {
props.setProperty(key, Integer.toString(map.size()));
@SuppressWarnings("checkstyle:UnusedLocalVariable")
int i = 0;
for (Iterator it = map.keySet().iterator(); it.hasNext(); i++) {
Object k = it.next();
for (Object k : map.keySet()) {
Object v = map.get(k);
serialize(props, key + "." + k, v);
}
Expand Down