From cd1921901325c9ffd9388856bab484281da9a695 Mon Sep 17 00:00:00 2001 From: Guice Team Date: Fri, 27 Oct 2023 14:35:53 -0700 Subject: [PATCH] Internal change PiperOrigin-RevId: 577308018 --- core/src/com/google/inject/Key.java | 2 +- core/test/com/google/inject/KeyTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/com/google/inject/Key.java b/core/src/com/google/inject/Key.java index 1e9063abac..83b4d4800e 100644 --- a/core/src/com/google/inject/Key.java +++ b/core/src/com/google/inject/Key.java @@ -381,7 +381,7 @@ private static void ensureRetainedAtRuntime(Class annotati private static void ensureIsBindingAnnotation(Class 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()); } diff --git a/core/test/com/google/inject/KeyTest.java b/core/test/com/google/inject/KeyTest.java index d37c56b784..17b37b18cb 100644 --- a/core/test/com/google/inject/KeyTest.java +++ b/core/test/com/google/inject/KeyTest.java @@ -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."); } }