mirror of
https://github.com/google/nomulus.git
synced 2025-05-12 22:38:16 +02: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:
parent
633eb3179a
commit
0bb2e12a8a
7 changed files with 15 additions and 16 deletions
|
@ -14,8 +14,6 @@
|
|||
|
||||
package google.registry.util;
|
||||
|
||||
import static com.google.common.base.Predicates.notNull;
|
||||
|
||||
import com.google.common.annotations.VisibleForTesting;
|
||||
import com.google.common.base.Joiner;
|
||||
import com.google.common.base.Splitter;
|
||||
|
@ -111,7 +109,7 @@ public final class DiffUtils {
|
|||
ImmutableSortedMap.Builder<Integer, Object> builder =
|
||||
new ImmutableSortedMap.Builder<>(Ordering.natural());
|
||||
int i = 0;
|
||||
for (Object item : Iterables.filter(iterable, notNull())) {
|
||||
for (Object item : Iterables.filter(iterable, Objects::nonNull)) {
|
||||
builder.put(i++, item);
|
||||
}
|
||||
return builder.build();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue