rishabhdaim commented on code in PR #2222: URL: https://github.com/apache/jackrabbit-oak/pull/2222#discussion_r2039034007
########## 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: I would replace this with `commons-collections4` `IteratorUtils.arrayIterator()`. -- 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