jimjoamz commented on a change in pull request #12373:
URL: https://github.com/apache/druid/pull/12373#discussion_r837787995



##########
File path: 
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.getRawType());

Review comment:
       Hmm good catch.  Here's some more confusion for the pile.  `getType` was 
marked deprecated in 2.10 as well but seems to be un-deprecated in 2.11+
   
   
https://github.com/FasterXML/jackson-databind/blob/2.10/src/main/java/com/fasterxml/jackson/databind/introspect/Annotated.java#L47-L49
   
   
https://github.com/FasterXML/jackson-databind/blob/2.11/src/main/java/com/fasterxml/jackson/databind/introspect/Annotated.java#L41-L47
   
   I can swap this to `getType()` instead if that is preferred.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to