Skip to content

Commit

Permalink
OAK-11229: remove usage of newArrayList(Iterable/Iterator)
Browse files Browse the repository at this point in the history
  • Loading branch information
reschke committed Oct 30, 2024
1 parent c3e7c20 commit 76a2d71
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
import java.util.UUID;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.TimeUnit;
import static org.apache.jackrabbit.guava.common.collect.Lists.newArrayList;

import static java.util.Collections.emptyMap;
import static java.util.Collections.singletonMap;
Expand Down Expand Up @@ -127,7 +126,7 @@ public String checkpoint(long lifetime) {
@Override
public Iterable<String> checkpoints() {
List<String> result = new ArrayList<>(inheritedCheckpoints);
result.retainAll(newArrayList(nodeStore.checkpoints()));
result.retainAll(CollectionUtils.toList(nodeStore.checkpoints()));

checkpointMapping.entrySet().stream()
.filter(e -> memoryNodeStore.listCheckpoints().contains(e.getValue()))
Expand Down

0 comments on commit 76a2d71

Please sign in to comment.