Skip to content

Commit

Permalink
Update error message to reflect https://github.com/google/guice/wiki/…
Browse files Browse the repository at this point in the history
…JSR330#best-practices

PiperOrigin-RevId: 576758800
  • Loading branch information
java-team-github-bot authored and Guice Team committed Oct 27, 2023
1 parent 73dc9f3 commit 735ef6f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/src/com/google/inject/Key.java
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ private static void ensureRetainedAtRuntime(Class<? extends Annotation> annotati
private static void ensureIsBindingAnnotation(Class<? extends Annotation> annotationType) {
checkArgument(
Annotations.isBindingAnnotation(annotationType),
"%s is not a binding annotation. Please annotate it with @BindingAnnotation.",
"%s is not a binding annotation. Please annotate it with @Qualifier.",
annotationType.getName());
}

Expand Down
2 changes: 1 addition & 1 deletion core/test/com/google/inject/KeyTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ public void testNonBindingAnnotationOnKey() {
assertContains(
expected.getMessage(),
"java.lang.Deprecated is not a binding annotation. ",
"Please annotate it with @BindingAnnotation.");
"Please annotate it with @Qualifier.");
}
}

Expand Down

0 comments on commit 735ef6f

Please sign in to comment.