mirror of
https://github.com/google/nomulus
synced 2026-09-28 18:55:37 +00:00
Replace Stream.concat with Streams.concat
Stream.concat only accepts 2 parameters. Streams.concat on the other hand accepts any number of parameters. Moving to Streams.concat for all uses (2 or more) makes sense for uniformity and convenience reasons. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=179716648
This commit is contained in:
@@ -33,6 +33,7 @@ import com.google.common.collect.ImmutableSet;
|
||||
import com.google.common.collect.ImmutableSortedMap;
|
||||
import com.google.common.collect.Iterables;
|
||||
import com.google.common.collect.Ordering;
|
||||
import com.google.common.collect.Streams;
|
||||
import com.googlecode.objectify.Key;
|
||||
import google.registry.model.EntityTestCase;
|
||||
import google.registry.model.billing.BillingEvent;
|
||||
@@ -51,7 +52,6 @@ import google.registry.model.registry.Registry;
|
||||
import google.registry.model.reporting.HistoryEntry;
|
||||
import google.registry.model.transfer.TransferData;
|
||||
import google.registry.model.transfer.TransferStatus;
|
||||
import java.util.stream.Stream;
|
||||
import org.joda.money.Money;
|
||||
import org.joda.time.DateTime;
|
||||
import org.junit.Before;
|
||||
@@ -369,7 +369,7 @@ public class DomainResourceTest extends EntityTestCase {
|
||||
domain
|
||||
.asBuilder()
|
||||
.setGracePeriods(
|
||||
Stream.concat(addGracePeriods.stream(), renewGracePeriods.stream())
|
||||
Streams.concat(addGracePeriods.stream(), renewGracePeriods.stream())
|
||||
.collect(toImmutableSet()))
|
||||
.build();
|
||||
assertThat(domain.getGracePeriodsOfType(GracePeriodStatus.ADD)).isEqualTo(addGracePeriods);
|
||||
|
||||
Reference in New Issue
Block a user