forked from square/dagger
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix error message for an
@Binds @IntoSet
implementation with duplic…
…ate bindings. This CL fixes a case where an `@Binds @IntoSet` that delegates to an implementation with duplicate bindings was throwing an `IllegalArgumentException` rather than reporting an error properly. An example of the problematic code is shown below: ```java @module interface FooModule { @BINDS @IntoSet Foo bindFoo(FooImpl impl); @provides static FooImpl provideFooImpl1() { ... } @provides static FooImpl provideFooImpl2() { ... } } ``` The above code now reports the duplicate binding rather than throwing an `IllegalArgumentException`. RELNOTES=Fixed error message for an `@Binds @IntoSet` implementation with duplicate bindings. PiperOrigin-RevId: 591976664
- Loading branch information
Showing
2 changed files
with
95 additions
and
8 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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