Skip to content

Commit

Permalink
JNG-5676 Replace keySet to entrySet (#66)
Browse files Browse the repository at this point in the history

* replace keyset to entryset

* remove treeset
  • Loading branch information
gaborflorian authored Apr 11, 2024
1 parent 5ca6407 commit 58d4ecb
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 : 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 58d4ecb

Please sign in to comment.