dagger-reflect icon indicating copy to clipboard operation
dagger-reflect copied to clipboard

Add check for nullability mismatch.

Open runningcode opened this issue 6 years ago • 1 comments

When there is a mismatch between the nullability of the binding and the requestor, throw an exception.

This only works if the nullability annotations have runtime retention.

Looking for feedback to see if this is a reasonable approach and how/if we should make the error message better.

runningcode avatar Jul 19 '19 12:07 runningcode

Hmm, should we introduce DependencyRequest to dagger reflect? I feel like it would add a good bit of runtime overhead to create one for each DepenencyRequest.

runningcode avatar Jul 21 '19 19:07 runningcode