diff --git a/core/src/main/java/org/apache/druid/guice/GuiceAnnotationIntrospector.java b/core/src/main/java/org/apache/druid/guice/GuiceAnnotationIntrospector.java index ce49253e0ffb..1f1a20d43f99 100644 --- a/core/src/main/java/org/apache/druid/guice/GuiceAnnotationIntrospector.java +++ b/core/src/main/java/org/apache/druid/guice/GuiceAnnotationIntrospector.java @@ -58,9 +58,9 @@ public Object findInjectableValueId(AnnotatedMember m) if (m instanceof AnnotatedMethod) { throw new IAE("Annotated methods don't work very well yet..."); } - return Key.get(m.getGenericType()); + return Key.get(m.getType()); } - return Key.get(m.getGenericType(), guiceAnnotation); + return Key.get(m.getType(), guiceAnnotation); } /**