Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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),

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why would this matter?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The order changes the default value -- the first value passed to the enum's constructor is the default value.

;

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