mirror of
https://github.com/google/nomulus.git
synced 2025-05-19 18:59:35 +02:00
Prefer Multimap interface types over implementation types.
This change is required before the migration to MultimapBuilder can be completed. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=141208944
This commit is contained in:
parent
f2faf49d58
commit
c496f369c1
2 changed files with 3 additions and 2 deletions
|
@ -32,6 +32,7 @@ import com.google.common.collect.ImmutableList;
|
|||
import com.google.common.collect.ImmutableMap;
|
||||
import com.google.common.collect.ImmutableSet;
|
||||
import com.google.common.collect.Iterables;
|
||||
import com.google.common.collect.SortedSetMultimap;
|
||||
import com.google.common.collect.TreeMultimap;
|
||||
import google.registry.config.ConfigModule.Config;
|
||||
import google.registry.dns.DnsConstants.TargetType;
|
||||
|
@ -121,7 +122,7 @@ public final class ReadDnsQueueAction implements Runnable {
|
|||
// each TLD will be grouped together, and domains and hosts will be grouped within a TLD. The
|
||||
// grouping and ordering of domains and hosts is not technically necessary, but a predictable
|
||||
// ordering makes it possible to write detailed tests.
|
||||
TreeMultimap<String, RefreshItem> refreshItemMultimap = TreeMultimap.create();
|
||||
SortedSetMultimap<String, RefreshItem> refreshItemMultimap = TreeMultimap.create();
|
||||
// Read all tasks on the DNS pull queue and load them into the refresh item multimap.
|
||||
for (TaskHandle task : tasks) {
|
||||
try {
|
||||
|
|
|
@ -37,7 +37,7 @@ public final class UriParameters {
|
|||
*/
|
||||
public static ListMultimap<String, String> parse(String query) {
|
||||
checkNotNull(query);
|
||||
ArrayListMultimap<String, String> map = ArrayListMultimap.create();
|
||||
ListMultimap<String, String> map = ArrayListMultimap.create();
|
||||
if (!query.isEmpty()) {
|
||||
int start = 0;
|
||||
while (start <= query.length()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue