Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Annotate
Module
explicitly as @FunctionalInterface
.
`Module` is implicitly a `@FunctionalInterface` already. That is very convenient, as it allows to express ``` methodThatTakesAModule( new AbstractModule(){ @OverRide protected void configure() { bind(Foo.class).annotatedWith(Bar.class).toInstance(barredFoo); } } ); ``` as ``` methodThatTakesAModule(binder -> binder.bind(Foo.class).annotatedWith(Bar.class).toInstance(barredFoo)); ``` PiperOrigin-RevId: 544058444
- Loading branch information