Skip to content

Commit 11fa75d

Browse files
rishabhdaimRishabh Kumar
andauthored
OAK-11562 : removed usage of Guava's Iterables.addAll (#2149)
Co-authored-by: Rishabh Kumar <diam@adobe.com>
1 parent 9762770 commit 11fa75d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

oak-authorization-cug/src/main/java/org/apache/jackrabbit/oak/spi/security/authorization/cug/impl/CugAccessControlManager.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ private Set<String> collectEffectiveCandidates(@NotNull Root r, @NotNull Iterabl
369369
String path = eval.remove();
370370
Tree t = immutableRoot.getTree(path);
371371
if (PathUtils.denotesRoot(path)) {
372-
Iterables.addAll(eval, nestedCugPaths(t));
372+
nestedCugPaths(t).forEach(eval::add);
373373
}
374374
if (CugUtil.isSupportedPath(path, supportedPaths)) {
375375
Tree cug = CugUtil.getCug(t);
@@ -378,7 +378,7 @@ private Set<String> collectEffectiveCandidates(@NotNull Root r, @NotNull Iterabl
378378
if (!Collections.disjoint(ImmutableSet.copyOf(principalNames), ImmutableSet.copyOf(pNames.getValue(Type.STRINGS)))) {
379379
candidates.add(path);
380380
}
381-
Iterables.addAll(eval, nestedCugPaths(cug));
381+
nestedCugPaths(cug).forEach(eval::add);
382382
}
383383
}
384384
}

0 commit comments

Comments
 (0)