Skip to content

Commit d55d61c

Browse files
java-team-github-botDagger Team
authored andcommitted
No public description
RELNOTES=n/a PiperOrigin-RevId: 657335531
1 parent 952c250 commit d55d61c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

java/dagger/hilt/android/processor/internal/viewmodel/ViewModelMetadata.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ private constructor(val viewModelElement: XTypeElement, val assistedFactory: XTy
108108
val assistedFactoryMethodType = assistedFactoryMethod!!.asMemberOf(assistedFactoryType)
109109

110110
ProcessorErrors.checkState(
111-
assistedFactoryMethodType.returnType.asTypeName() == viewModelElement.asClassName(),
111+
assistedFactoryMethodType.returnType.asTypeName()
112+
.equalsIgnoreNullability(viewModelElement.asClassName()),
112113
assistedFactoryMethod,
113114
"Class %s must have a factory method that returns a %s. Found %s.",
114115
XElements.toStableString(assistedFactory),

0 commit comments

Comments
 (0)