mbaedke commented on code in PR #1899:
URL: https://github.com/apache/jackrabbit-oak/pull/1899#discussion_r1883908703


##########
oak-security-spi/src/main/java/org/apache/jackrabbit/oak/spi/security/authorization/accesscontrol/AbstractAccessControlList.java:
##########
@@ -103,9 +101,9 @@ public int size() {
     @NotNull
     @Override
     public String[] getRestrictionNames() {
-        Collection<RestrictionDefinition> supported = 
getRestrictionProvider().getSupportedRestrictions(getOakPath());
-        return Collections2.transform(supported, definition -> 
namePathMapper.getJcrName(definition.getName())).toArray(new 
String[supported.size()]);
-
+        return getRestrictionProvider().getSupportedRestrictions(getOakPath()).
+            stream().map(definition -> 
namePathMapper.getJcrName(definition.getName())).
+            toArray(size -> new String[size]);

Review Comment:
   dito



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to