diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2016-07-05 22:46:00 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2016-07-06 15:44:31 +0200 |
commit | e816a69c28603e73673e50295bc0d3a88f01081d (patch) | |
tree | ad815d86d0357a71a7c5d39e354516e1ad2add2c /sonar-db/src | |
parent | 8b35f61e59a7fd502c3c2b7ba14e7c5a279e8f2a (diff) | |
download | sonarqube-e816a69c28603e73673e50295bc0d3a88f01081d.tar.gz sonarqube-e816a69c28603e73673e50295bc0d3a88f01081d.zip |
Remove unused methods of IdUuidPairs
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)); - } - } |