From bfb87d5b2f49d19ed9a5666254dec719160ec199 Mon Sep 17 00:00:00 2001 From: danysantiago Date: Thu, 13 Feb 2020 16:23:59 -0800 Subject: [PATCH] Use DaggerCollectors instead of MoreCollectors Fixes https://github.com/google/dagger/issues/1740 RELNOTES=Remove a usage of Guava API not available in the '-android' variant. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=295026567 --- java/dagger/internal/codegen/kotlin/KotlinMetadataUtil.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java/dagger/internal/codegen/kotlin/KotlinMetadataUtil.java b/java/dagger/internal/codegen/kotlin/KotlinMetadataUtil.java index df8b547c9aa..1d49254d208 100644 --- a/java/dagger/internal/codegen/kotlin/KotlinMetadataUtil.java +++ b/java/dagger/internal/codegen/kotlin/KotlinMetadataUtil.java @@ -22,7 +22,7 @@ import com.google.common.collect.ImmutableCollection; import com.google.common.collect.ImmutableList; -import com.google.common.collect.MoreCollectors; +import dagger.internal.codegen.extension.DaggerCollectors; import java.lang.annotation.Annotation; import javax.inject.Inject; import javax.lang.model.element.AnnotationMirror; @@ -102,7 +102,7 @@ public TypeElement getEnclosedCompanionObject(TypeElement typeElement) { ElementFilter.typesIn(typeElement.getEnclosedElements()).stream() .filter( innerType -> innerType.getSimpleName().contentEquals(companionObjectName)) - .collect(MoreCollectors.onlyElement())) + .collect(DaggerCollectors.onlyElement())) .get(); }