Skip to content

Commit

Permalink
Java11 features
Browse files Browse the repository at this point in the history
  • Loading branch information
oharsta committed Jan 16, 2024
1 parent f1e9da5 commit 98d7cc3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ public List<Attribute> allowedAttributes() {
RequestEntity<?> request = buildGetRequest("/protected/attributes/");

return executeWithExceptionLogging(() -> {
ResponseEntity<List<AllowedAttribute>> response = pdpRestTemplate.exchange(request, new ParameterizedTypeReference<List<AllowedAttribute>>() {
ResponseEntity<List<AllowedAttribute>> response = pdpRestTemplate.exchange(request, new ParameterizedTypeReference<>() {
});
return response.getBody().stream().map(aa -> new Attribute(aa.attributeId, aa.value)).collect(Collectors.toList());
});
Expand Down

0 comments on commit 98d7cc3

Please sign in to comment.