Created
August 22, 2015 03:18
-
-
Save patrykpoborca/c8f91e74d6917f3ce323 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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