Prefer subtypes of Multimap
Change-Id: I0b06b110afe8189a9fc84b75b95a2334d2b8bc0d
diff --git a/src/main/java/com/googlesource/gerrit/plugins/cookbook/DeployedOnIncludedInExtension.java b/src/main/java/com/googlesource/gerrit/plugins/cookbook/DeployedOnIncludedInExtension.java
index 2b0520f..e7ffbd3 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/cookbook/DeployedOnIncludedInExtension.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/cookbook/DeployedOnIncludedInExtension.java
@@ -15,7 +15,7 @@
package com.googlesource.gerrit.plugins.cookbook;
import com.google.common.collect.ArrayListMultimap;
-import com.google.common.collect.Multimap;
+import com.google.common.collect.ListMultimap;
import com.google.gerrit.extensions.config.ExternalIncludedIn;
import java.util.Collection;
@@ -25,9 +25,9 @@
private static final String STAGING = "Staging";
@Override
- public Multimap<String, String> getIncludedIn(String project, String commit,
- Collection<String> tags, Collection<String> branches) {
- Multimap<String, String> m = ArrayListMultimap.create();
+ public ListMultimap<String, String> getIncludedIn(String project,
+ String commit, Collection<String> tags, Collection<String> branches) {
+ ListMultimap<String, String> m = ArrayListMultimap.create();
m.put(PROD, "A");
m.put(PROD, "B");
m.put(PROD, "C");