Skip to content

Commit

Permalink
replace keyset to entryset
Browse files Browse the repository at this point in the history
  • Loading branch information
gaborflorian committed Apr 11, 2024
1 parent a89bd4c commit d9048ae
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/hu/blackbelt/judo/dao/api/PayloadImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@ public PayloadImpl(Map<String, Object> map) {
}
}
this.internal = new TreeMap<>();
for (String key : new TreeSet<>(map.keySet())) {
Object value = map.get(key);
for (Map.Entry<String, Object> entry : new TreeSet<>(map.entrySet())) {
String key = entry.getKey();
Object value = entry.getValue();
if (value instanceof List) {
this.internal.put(key, ((List<Map<String, Object>>) value).stream().map(
e -> asPayload(e)).collect(Collectors.toList()));
Expand Down

0 comments on commit d9048ae

Please sign in to comment.