mirror of
https://github.com/google/nomulus.git
synced 2025-05-12 22:38:16 +02:00
Replace com.google.common.base.Predicate with java.util.function.Predicate
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=179579304
This commit is contained in:
parent
0bb2e12a8a
commit
f1ae66d148
10 changed files with 29 additions and 32 deletions
|
@ -14,7 +14,7 @@
|
|||
|
||||
package google.registry.util;
|
||||
|
||||
import com.google.common.base.Predicate;
|
||||
import java.util.function.Predicate;
|
||||
|
||||
/** Utility class containing {@link Predicate} methods. */
|
||||
public class PredicateUtils {
|
||||
|
@ -34,7 +34,7 @@ public class PredicateUtils {
|
|||
}
|
||||
|
||||
@Override
|
||||
public boolean apply(Class<?> superClass) {
|
||||
public boolean test(Class<?> superClass) {
|
||||
return superClass.isAssignableFrom(subClass);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue