Skip to content

Commit

Permalink
Re-order Stream API calls (junit-team#2167)
Browse files Browse the repository at this point in the history
  • Loading branch information
HirotoTanaka114 committed Feb 15, 2020
1 parent 5c3a7dc commit f82e2f7
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -43,8 +43,8 @@ ResourceLock getLockForResources(Collection<ExclusiveResource> resources) {
private List<Lock> getDistinctSortedLocks(Collection<ExclusiveResource> resources) {
// @formatter:off
Map<String, List<ExclusiveResource>> resourcesByKey = resources.stream()
.distinct()
.sorted(COMPARATOR)
.distinct()
.collect(groupingBy(ExclusiveResource::getKey, LinkedHashMap::new, toList()));

return resourcesByKey.values().stream()
Expand Down

0 comments on commit f82e2f7

Please sign in to comment.