Skip to content

Commit 9200c7e

Browse files
rishabhdaimRishabh Kumar
andauthored
OAK-11522 : removed usage of Guava's Iterables.filter (remaining one) (#2152)
Co-authored-by: Rishabh Kumar <diam@adobe.com>
1 parent e27b02a commit 9200c7e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

oak-exercise/src/test/java/org/apache/jackrabbit/oak/exercise/security/privilege/L3_BuiltInPrivilegesTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
import org.apache.jackrabbit.oak.api.CommitFailedException;
3333
import org.apache.jackrabbit.oak.api.ContentSession;
3434
import org.apache.jackrabbit.oak.api.Root;
35+
import org.apache.jackrabbit.oak.commons.collections.IterableUtils;
3536
import org.apache.jackrabbit.oak.spi.security.privilege.PrivilegeConstants;
3637
import org.junit.Test;
3738

@@ -132,7 +133,7 @@ public void testAggregation() throws RepositoryException {
132133
/* EXERCISE */
133134
);
134135

135-
Iterable<Privilege> aggregated = Iterables.<Privilege>filter(
136+
Iterable<Privilege> aggregated = IterableUtils.filter(
136137
Arrays.asList(privilegeManager.getRegisteredPrivileges()),
137138
input -> input != null && input.isAggregate());
138139

0 commit comments

Comments
 (0)