Skip to content

Commit

Permalink
Refactor BestillingArbeidssoekerregisteretStatusMapper to use HashSet…
Browse files Browse the repository at this point in the history
… for statusIdents
  • Loading branch information
krharum committed Mar 7, 2025
1 parent fffe9b9 commit e3ebcd9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import no.nav.dolly.domain.resultset.RsStatusRapport;

import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
Expand Down Expand Up @@ -33,7 +34,7 @@ public static List<RsStatusRapport> buildArbeidssoekerregisteretStatusMap(List<B
if (statusIdents.containsKey(decodedStatus)) {
statusIdents.get(decodedStatus).add(progress.getIdent());
} else {
statusIdents.put(decodedStatus, Set.of(progress.getIdent()));
statusIdents.put(decodedStatus, new HashSet<>(Set.of(progress.getIdent())));
}
});
}
Expand Down

0 comments on commit e3ebcd9

Please sign in to comment.