Skip to content

Commit

Permalink
Apply tiny RESTEasy Reactive polish
Browse files Browse the repository at this point in the history
(cherry picked from commit 7212c2a)
  • Loading branch information
geoand authored and gsmet committed Jun 28, 2022
1 parent d24e402 commit 8a29421
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -930,10 +930,10 @@ private String getEndpointClassifier(ResourceMethod resourceMethod, String path)
}

private String getDuplicateEndpointMessage(List<EndpointConfig> endpoints) {
StringBuilder message = new StringBuilder();
if (endpoints.size() < 2) {
return null;
}
StringBuilder message = new StringBuilder();
Map<String, List<EndpointConfig>> duplicatesByMimeTypes = endpoints.stream()
.collect(Collectors.groupingBy(EndpointConfig::toString));
for (Map.Entry<String, List<EndpointConfig>> duplicates : duplicatesByMimeTypes.entrySet()) {
Expand Down

0 comments on commit 8a29421

Please sign in to comment.