mirror of
https://github.com/google/nomulus.git
synced 2025-05-15 00:47:11 +02:00
Upgrade Nomulus to Java8
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=170486775
This commit is contained in:
parent
1c4e79f99e
commit
f70a7e6342
1 changed files with 1 additions and 3 deletions
|
@ -15,8 +15,6 @@
|
|||
package google.registry.mapreduce.inputs;
|
||||
|
||||
import static com.google.common.base.Preconditions.checkArgument;
|
||||
import static com.google.common.base.Predicates.not;
|
||||
import static com.google.common.collect.Iterables.all;
|
||||
import static com.google.common.collect.Lists.asList;
|
||||
import static google.registry.util.TypeUtils.hasAnnotation;
|
||||
|
||||
|
@ -92,7 +90,7 @@ public final class EppResourceInputs {
|
|||
ImmutableSet<Class<? extends R>> resourceClasses =
|
||||
ImmutableSet.copyOf(asList(resourceClass, moreResourceClasses));
|
||||
checkArgument(
|
||||
all(resourceClasses, not(hasAnnotation(EntitySubclass.class))),
|
||||
resourceClasses.stream().noneMatch(hasAnnotation(EntitySubclass.class)),
|
||||
"Mapping over keys requires a non-polymorphic Entity");
|
||||
return new EppResourceKeyInput<>(resourceClasses);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue