diff options
Diffstat (limited to 'sonar-db/src')
-rw-r--r-- | sonar-db/src/main/java/org/sonar/db/purge/IdUuidPairs.java | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/sonar-db/src/main/java/org/sonar/db/purge/IdUuidPairs.java b/sonar-db/src/main/java/org/sonar/db/purge/IdUuidPairs.java index 2e81cecfe9d..74c2970592e 100644 --- a/sonar-db/src/main/java/org/sonar/db/purge/IdUuidPairs.java +++ b/sonar-db/src/main/java/org/sonar/db/purge/IdUuidPairs.java @@ -19,12 +19,11 @@ */ package org.sonar.db.purge; -import com.google.common.collect.Lists; import java.util.ArrayList; import java.util.List; import java.util.stream.Collectors; -public final class IdUuidPairs { +class IdUuidPairs { private IdUuidPairs() { // prevents instantiation } @@ -33,22 +32,8 @@ public final class IdUuidPairs { return pairs.stream().map(IdUuidPair::getId).collect(Collectors.toCollection(() -> new ArrayList<>(pairs.size()))); } - public static List<Long> ids(Iterable<IdUuidPair> pairs) { - if (pairs instanceof List) { - return ids((List<IdUuidPair>) pairs); - } - return ids(Lists.newArrayList(pairs)); - } - public static List<String> uuids(List<IdUuidPair> pairs) { return pairs.stream().map(IdUuidPair::getUuid).collect(Collectors.toCollection(() -> new ArrayList<>(pairs.size()))); } - public static List<String> uuids(Iterable<IdUuidPair> pairs) { - if (pairs instanceof List) { - return uuids((List<IdUuidPair>) pairs); - } - return uuids(Lists.newArrayList(pairs)); - } - } |