mirror of
https://github.com/google/nomulus.git
synced 2025-07-24 03:30:46 +02:00
Replace com.google.common.base.Function with java.util.function.Function
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=179249159
This commit is contained in:
parent
d538dca2e0
commit
8157928a35
53 changed files with 424 additions and 399 deletions
|
@ -16,6 +16,7 @@ package google.registry.reporting;
|
|||
|
||||
import static com.google.common.base.Preconditions.checkState;
|
||||
import static com.google.common.base.Strings.isNullOrEmpty;
|
||||
import static com.google.common.collect.ImmutableList.toImmutableList;
|
||||
import static google.registry.reporting.IcannReportingModule.MANIFEST_FILE_NAME;
|
||||
import static java.nio.charset.StandardCharsets.UTF_8;
|
||||
|
||||
|
@ -119,7 +120,7 @@ public class IcannReportingStager {
|
|||
return fields
|
||||
.stream()
|
||||
.map((schema) -> schema.getName().replace('_', '-'))
|
||||
.collect(ImmutableList.toImmutableList());
|
||||
.collect(toImmutableList());
|
||||
}
|
||||
|
||||
/** Creates and stores activity reports on GCS, returns a list of files stored. */
|
||||
|
@ -183,7 +184,7 @@ public class IcannReportingStager {
|
|||
// Ignore TLD, Registrar name and IANA id
|
||||
.skip(3)
|
||||
.map((Object o) -> Integer.parseInt(o.toString()))
|
||||
.collect(Collectors.toList());
|
||||
.collect(toImmutableList());
|
||||
checkState(
|
||||
rowVals.size() == totals.size(),
|
||||
"Number of elements in totals not equal to number of elements in row!");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue