grapht icon indicating copy to clipboard operation
grapht copied to clipboard

Try to detect nullability violations in advance

Open mdekstrand opened this issue 11 years ago • 0 comments

I think we can do a fair amount of detection of nullability violations in advance. We might already do some of this.

Ideas:

  • [ ] Resolving non-nullable dependencies with null bindings should fail.
  • [ ] Binding a non-nullable dependency to a provider whose get() method is annotated with @Nullable should emit a warning.
  • [ ] Binding a non-nullable dependency to a provider whose get() method is not annotated with @Nonnull: warn or leave alone?

mdekstrand avatar Jun 17 '14 16:06 mdekstrand