Skip to content

Commit

Permalink
Fix diagnostic kind in InjectValidator.
Browse files Browse the repository at this point in the history
RELNOTES=n/a
PiperOrigin-RevId: 615894485
  • Loading branch information
wanyingd1996 authored and Dagger Team committed Mar 14, 2024
1 parent 3fa9a8a commit e8e1ce6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions java/dagger/internal/codegen/validation/InjectValidator.java
Expand Up @@ -302,10 +302,8 @@ private ValidationReport validateField(XFieldElement fieldElement) {
if (fieldElement.isProtected()
&& fieldElement.getEnclosingElement().isFromKotlin()
) {
builder.addItem(
"Dagger injector does not have access to kotlin protected fields",
staticMemberDiagnosticKind(),
fieldElement);
builder.addError(
"Dagger injector does not have access to kotlin protected fields", fieldElement);
}

validateDependencyRequest(builder, fieldElement);
Expand Down

0 comments on commit e8e1ce6

Please sign in to comment.