reschke commented on code in PR #2222:
URL: https://github.com/apache/jackrabbit-oak/pull/2222#discussion_r2039071476


##########
oak-authorization-cug/src/main/java/org/apache/jackrabbit/oak/spi/security/authorization/cug/impl/CugAccessControlManager.java:
##########
@@ -252,7 +252,7 @@ public AccessControlPolicy[] getEffectivePolicies(@NotNull 
Set<Principal> princi
             return Collections.emptyIterator();
         }
         if (absPaths == null || absPaths.length == 0) {
-            return Iterators.forArray(getEffectivePolicies(principals));
+            return Arrays.asList(getEffectivePolicies(principals)).iterator();

Review Comment:
   If this was a problem, we could refactor the code so that the conversion is 
not needed in the first place. 



-- 
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: oak-dev-unsubscr...@jackrabbit.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to