Skip to content

Instantly share code, notes, and snippets.

@patrykpoborca
Created August 13, 2015 00:03
Show Gist options
  • Save patrykpoborca/e5d2df2939b44ed2fd31 to your computer and use it in GitHub Desktop.
Save patrykpoborca/e5d2df2939b44ed2fd31 to your computer and use it in GitHub Desktop.
public BaseComponent build() {
if (localModule == null) {
this.localModule = new LocalModule();
}
if (networkModule == null) {
this.networkModule = new NetworkModule();
}
if (applicationComponent == null) {
throw new IllegalStateException("applicationComponent must be set");
}
return new DaggerBaseComponent(this);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment