Skip to content

Commit

Permalink
Use DaggerCollectors instead of MoreCollectors
Browse files Browse the repository at this point in the history
Fixes #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
  • Loading branch information
danysantiago authored and kluever committed Feb 17, 2020
1 parent 472fdfa commit bfb87d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions java/dagger/internal/codegen/kotlin/KotlinMetadataUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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();
}

Expand Down

0 comments on commit bfb87d5

Please sign in to comment.