Skip to content

Commit

Permalink
Call unwrapType statically and not on an instance.
Browse files Browse the repository at this point in the history
RELNOTES=n/a
PiperOrigin-RevId: 361150968
  • Loading branch information
ronshapiro authored and Dagger Team committed Mar 5, 2021
1 parent 45be19e commit 7e0abd6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import static dagger.internal.codegen.binding.AssistedInjectionAnnotations.assistedInjectedConstructors;
import static dagger.internal.codegen.binding.InjectionAnnotations.injectedConstructors;
import static dagger.internal.codegen.binding.SourceFiles.generatedClassNameForBinding;
import static dagger.internal.codegen.langmodel.DaggerTypes.unwrapType;

import com.google.auto.common.MoreElements;
import com.google.auto.common.MoreTypes;
Expand Down Expand Up @@ -351,7 +352,7 @@ public Optional<ProvisionBinding> getOrFindMembersInjectorProvisionBinding(Key k
if (!isValidMembersInjectionKey(key)) {
return Optional.empty();
}
Key membersInjectionKey = keyFactory.forMembersInjectedType(types.unwrapType(key.type()));
Key membersInjectionKey = keyFactory.forMembersInjectedType(unwrapType(key.type()));
return getOrFindMembersInjectionBinding(membersInjectionKey)
.map(binding -> bindingFactory.membersInjectorBinding(key, binding));
}
Expand Down

0 comments on commit 7e0abd6

Please sign in to comment.