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 re...@apache.org on 2024/12/12 14:56:31 UTC

(jackrabbit-oak) branch OAK-11304 created (now 8306afc20b)

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

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


      at 8306afc20b OAK-11304: Remove usage of Guava Collections2 - oak-core

This branch includes the following new commits:

     new 8306afc20b OAK-11304: Remove usage of Guava Collections2 - oak-core

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-11304: Remove usage of Guava Collections2 - oak-core

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

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

commit 8306afc20b69e6058728115f3e7ca0188d089de2
Author: Julian Reschke <re...@apache.org>
AuthorDate: Thu Dec 12 15:56:11 2024 +0100

    OAK-11304: Remove usage of Guava Collections2 - oak-core
---
 .../java/org/apache/jackrabbit/oak/plugins/version/VersionHook.java  | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/version/VersionHook.java b/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/version/VersionHook.java
index 89eb967f7b..00efacacd2 100644
--- a/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/version/VersionHook.java
+++ b/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/version/VersionHook.java
@@ -31,8 +31,8 @@ import java.util.ArrayList;
 import java.util.HashSet;
 import java.util.List;
 import java.util.Set;
+import java.util.stream.Collectors;
 
-import static org.apache.jackrabbit.guava.common.collect.Collections2.transform;
 import static org.apache.jackrabbit.oak.spi.commit.CompositeHook.compose;
 
 /**
@@ -76,6 +76,7 @@ public class VersionHook implements CommitHook {
         providers.add(new VersionableCollector.Provider(existingVersionables));
         providers.add(new OrphanedVersionCleaner.Provider(existingVersionables));
 
-        return compose(transform(providers, input -> new EditorHook(input))).processCommit(before, after, info);
+        return compose(providers.stream().map(input -> new EditorHook(input)).
+                collect(Collectors.toList())).processCommit(before, after, info);
     }
 }