Convert IncludedInResolver.Result to AutoValue

Convert the tests to Truth as well.

Change-Id: Iddbe7b8f5e29e8bc4ff3e0780477ec38434061c1
This commit is contained in:
Dave Borowitz
2018-08-31 12:11:03 -07:00
parent 5944f628cf
commit 9398d54c03
4 changed files with 45 additions and 84 deletions

View File

@@ -13,6 +13,7 @@
// limitations under the License.
package com.google.gerrit.extensions.api.changes;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Map;
@@ -23,9 +24,11 @@ public class IncludedInInfo {
public Map<String, Collection<String>> external;
public IncludedInInfo(
List<String> branches, List<String> tags, Map<String, Collection<String>> external) {
this.branches = branches;
this.tags = tags;
Collection<String> branches,
Collection<String> tags,
Map<String, Collection<String>> external) {
this.branches = new ArrayList<>(branches);
this.tags = new ArrayList<>(tags);
this.external = external;
}
}