mirror of
https://github.com/google/nomulus
synced 2026-01-11 00:10:36 +00:00
Migrate Guava Predicates.notNull to Objects.nonNull
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=179569444
This commit is contained in:
@@ -15,7 +15,6 @@
|
||||
package google.registry.tools;
|
||||
|
||||
import static com.google.common.base.Preconditions.checkArgument;
|
||||
import static com.google.common.base.Predicates.notNull;
|
||||
import static com.google.common.collect.ImmutableSet.toImmutableSet;
|
||||
import static google.registry.model.registrar.Registrar.loadByClientId;
|
||||
import static google.registry.util.PreconditionsUtils.checkArgumentPresent;
|
||||
@@ -35,6 +34,7 @@ import java.util.Collection;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
import java.util.Objects;
|
||||
|
||||
/** Command to verify that a registrar has passed OT&E. */
|
||||
@Parameters(
|
||||
@@ -118,7 +118,7 @@ final class VerifyOteCommand implements ServerSideCommand {
|
||||
// If it matches, provide the shortened name, and otherwise return null.
|
||||
return name.equals(replacedName) ? null : replacedName;
|
||||
})
|
||||
.filter(notNull())
|
||||
.filter(Objects::nonNull)
|
||||
.collect(toImmutableSet());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user