Skip to content

Instantly share code, notes, and snippets.

@Pacane
Created March 4, 2019 21:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Pacane/0343a64b6c8364d506ddb61b57825a79 to your computer and use it in GitHub Desktop.
Save Pacane/0343a64b6c8364d506ddb61b57825a79 to your computer and use it in GitHub Desktop.
class Bob {
final EventBus bus;
Bob() {
this.bus = new EventBus();
}
void faireQuelqueChose() {
bus.utiliserBus();
}
}
class Bob {
final EventBus bus;
Bob() {
this.bus = BusInstance.get();
}
void faireQuelqueChose() {
bus.utiliserBus();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment