Skip to content

Commit

Permalink
Flip the default for explicitBindingConflictsWithInject to enabled.
Browse files Browse the repository at this point in the history
RELNOTES=Flip the default for explicitBindingConflictsWithInject to enabled.
PiperOrigin-RevId: 591064440
  • Loading branch information
Chang-Eric authored and Dagger Team committed Dec 14, 2023
1 parent 13d64c6 commit 8372c63
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ public ImmutableList<String> aliases() {
* How to report that an explicit binding in a subcomponent conflicts with an {@code @Inject}
* constructor used in an ancestor component.
*/
EXPLICIT_BINDING_CONFLICTS_WITH_INJECT(WARNING, ERROR, NONE),
EXPLICIT_BINDING_CONFLICTS_WITH_INJECT(ERROR, WARNING, NONE),
;

final ValidationType defaultType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1052,9 +1052,8 @@ public void childProvidesConflictsWithParentInjects() {
CompilerTests.daggerCompiler(foo, injected1, injected2, provided1, provided2)
.compile(
subject -> {
subject.hasErrorCount(0);
subject.hasWarningCount(1);
subject.hasWarningContaining(
subject.hasErrorCount(1);
subject.hasErrorContaining(
message(
"Foo is bound multiple times:",
" @Inject Foo(Set<String>) [Injected1]",
Expand Down

0 comments on commit 8372c63

Please sign in to comment.