Commit 18d05130 authored by anandmohan777's avatar anandmohan777
Browse files

Ignore duplicates when producing map using streams

parent efab47ea
Pipeline #146541 canceled with stages
in 1 minute and 58 seconds
......@@ -249,7 +249,7 @@ public class MyAccessTokenConverter implements AccessTokenConverter {
.map(this::getDatasetId)
.filter(Optional::isPresent)
.map(Optional::get)
.collect(toMap(datasetId -> datasetId, fileDatasetService::getFileIds));
.collect(toMap(datasetId -> datasetId, fileDatasetService::getFileIds, (d1, d2) -> d2));
}
private boolean isValidToken(final SignedJWT signedJWT) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment