mirror of
https://github.com/google/nomulus.git
synced 2025-06-27 06:44:51 +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,7 +16,6 @@ package google.registry.model;
|
|||
|
||||
import static com.google.common.collect.ImmutableList.toImmutableList;
|
||||
|
||||
import com.google.common.base.Functions;
|
||||
import com.google.common.collect.Streams;
|
||||
import java.util.Collections;
|
||||
import java.util.LinkedHashMap;
|
||||
|
@ -67,7 +66,7 @@ public final class JsonMapBuilder {
|
|||
name,
|
||||
value == null
|
||||
? Collections.EMPTY_LIST
|
||||
: Streams.stream(value).map(Functions.toStringFunction()).collect(toImmutableList()));
|
||||
: Streams.stream(value).map(Object::toString).collect(toImmutableList()));
|
||||
return this;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue