Skip to content

Instantly share code, notes, and snippets.

@patrykpoborca
Created August 22, 2015 03:18
Show Gist options
  • Save patrykpoborca/c8f91e74d6917f3ce323 to your computer and use it in GitHub Desktop.
Save patrykpoborca/c8f91e74d6917f3ce323 to your computer and use it in GitHub Desktop.
@Override
public String get() {
String provided = module.providesString();
if (provided == null) {
throw new NullPointerException("Cannot return null from a non-@Nullable @Provides method");
}
return provided;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment