You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-commits@jackrabbit.apache.org by da...@apache.org on 2025/03/07 08:07:29 UTC
(jackrabbit-oak) branch OAK-11562 created (now d173ca1921)
This is an automated email from the ASF dual-hosted git repository.
daim pushed a change to branch OAK-11562
in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git
at d173ca1921 OAK-11562 : removed usage of Guava's Iterables.addAll
This branch includes the following new commits:
new d173ca1921 OAK-11562 : removed usage of Guava's Iterables.addAll
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(jackrabbit-oak) 01/01: OAK-11562 : removed usage of Guava's Iterables.addAll
Posted by da...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
daim pushed a commit to branch OAK-11562
in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git
commit d173ca19219a198b50e3fabdac6937a096846e9f
Author: Rishabh Kumar <di...@adobe.com>
AuthorDate: Fri Mar 7 13:37:16 2025 +0530
OAK-11562 : removed usage of Guava's Iterables.addAll
---
.../spi/security/authorization/cug/impl/CugAccessControlManager.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/oak-authorization-cug/src/main/java/org/apache/jackrabbit/oak/spi/security/authorization/cug/impl/CugAccessControlManager.java b/oak-authorization-cug/src/main/java/org/apache/jackrabbit/oak/spi/security/authorization/cug/impl/CugAccessControlManager.java
index 96bcf54137..75ae64237d 100644
--- a/oak-authorization-cug/src/main/java/org/apache/jackrabbit/oak/spi/security/authorization/cug/impl/CugAccessControlManager.java
+++ b/oak-authorization-cug/src/main/java/org/apache/jackrabbit/oak/spi/security/authorization/cug/impl/CugAccessControlManager.java
@@ -369,7 +369,7 @@ class CugAccessControlManager extends AbstractAccessControlManager implements Cu
String path = eval.remove();
Tree t = immutableRoot.getTree(path);
if (PathUtils.denotesRoot(path)) {
- Iterables.addAll(eval, nestedCugPaths(t));
+ nestedCugPaths(t).forEach(eval::add);
}
if (CugUtil.isSupportedPath(path, supportedPaths)) {
Tree cug = CugUtil.getCug(t);
@@ -378,7 +378,7 @@ class CugAccessControlManager extends AbstractAccessControlManager implements Cu
if (!Collections.disjoint(ImmutableSet.copyOf(principalNames), ImmutableSet.copyOf(pNames.getValue(Type.STRINGS)))) {
candidates.add(path);
}
- Iterables.addAll(eval, nestedCugPaths(cug));
+ nestedCugPaths(cug).forEach(eval::add);
}
}
}