diff --git a/src/main/java/de/adorsys/keycloak/config/repository/ClientRepository.java b/src/main/java/de/adorsys/keycloak/config/repository/ClientRepository.java index f3fdaeab5..b668b05c0 100644 --- a/src/main/java/de/adorsys/keycloak/config/repository/ClientRepository.java +++ b/src/main/java/de/adorsys/keycloak/config/repository/ClientRepository.java @@ -199,12 +199,12 @@ private String getResourceId(ClientResource clientResource, String resourceName) // find it with name and owner(clientId) and then with name only // Note: findByName is not exact filter the resource with the exact name return clientResource.authorization().resources().findByName(resourceName, clientId).stream() - .filter( r -> resourceName.equals(r.getName())) + .filter(r -> resourceName.equals(r.getName())) .findFirst().map(ResourceRepresentation::getId) .orElseGet( () -> clientResource.authorization().resources() .findByName(resourceName).stream() - .filter( r -> resourceName.equals(r.getName())) + .filter(r -> resourceName.equals(r.getName())) .findFirst().map(ResourceRepresentation::getId) .orElse(null)); }