Skip to content

Commit

Permalink
No public description
Browse files Browse the repository at this point in the history
RELNOTES=n/a
PiperOrigin-RevId: 657335531
  • Loading branch information
java-team-github-bot authored and Dagger Team committed Jul 29, 2024
1 parent 952c250 commit d55d61c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ private constructor(val viewModelElement: XTypeElement, val assistedFactory: XTy
val assistedFactoryMethodType = assistedFactoryMethod!!.asMemberOf(assistedFactoryType)

ProcessorErrors.checkState(
assistedFactoryMethodType.returnType.asTypeName() == viewModelElement.asClassName(),
assistedFactoryMethodType.returnType.asTypeName()
.equalsIgnoreNullability(viewModelElement.asClassName()),
assistedFactoryMethod,
"Class %s must have a factory method that returns a %s. Found %s.",
XElements.toStableString(assistedFactory),
Expand Down

0 comments on commit d55d61c

Please sign in to comment.