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 2024/12/30 14:06:25 UTC

(jackrabbit-oak) branch OAK-11331 created (now 10f5818806)

This is an automated email from the ASF dual-hosted git repository.

daim pushed a change to branch OAK-11331
in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git


      at 10f5818806 OAK-11331 : removed usage of guava's Sets.filter

This branch includes the following new commits:

     new 10f5818806 OAK-11331 : removed usage of guava's Sets.filter

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-11331 : removed usage of guava's Sets.filter

Posted by da...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

daim pushed a commit to branch OAK-11331
in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git

commit 10f5818806e62989744c556122cc0d1fb0678747
Author: Rishabh Kumar <di...@adobe.com>
AuthorDate: Mon Dec 30 19:36:13 2024 +0530

    OAK-11331 : removed usage of guava's Sets.filter
---
 .../org/apache/jackrabbit/oak/plugins/document/SplitOperations.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/SplitOperations.java b/oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/SplitOperations.java
index c7ce67698f..1b8338ab60 100644
--- a/oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/SplitOperations.java
+++ b/oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/SplitOperations.java
@@ -31,6 +31,7 @@ import java.util.TreeMap;
 import java.util.function.Function;
 import java.util.function.Predicate;
 import java.util.function.Supplier;
+import java.util.stream.Collectors;
 
 import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
 import org.apache.jackrabbit.oak.plugins.document.memory.MemoryDocumentStore;
@@ -45,7 +46,6 @@ import org.apache.jackrabbit.guava.common.collect.Maps;
 
 import static java.util.Objects.requireNonNull;
 
-import static org.apache.jackrabbit.guava.common.collect.Sets.filter;
 import static org.apache.jackrabbit.oak.plugins.document.NodeDocument.COMMIT_ROOT;
 import static org.apache.jackrabbit.oak.plugins.document.NodeDocument.DOC_SIZE_THRESHOLD;
 import static org.apache.jackrabbit.oak.plugins.document.NodeDocument.PREV_SPLIT_FACTOR;
@@ -438,7 +438,7 @@ class SplitOperations {
     private void collectLocalChanges(
             Map<String, NavigableMap<Revision, String>> committedLocally,
             Set<Revision> changes) {
-        for (String property : filter(doc.keySet(), PROPERTY_OR_DELETED::test)) {
+        for (String property : doc.keySet().stream().filter(PROPERTY_OR_DELETED).collect(Collectors.toSet())) {
             NavigableMap<Revision, String> splitMap
                     = new TreeMap<Revision, String>(StableRevisionComparator.INSTANCE);
             committedLocally.put(property, splitMap);