You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "essobedo (via GitHub)" <gi...@apache.org> on 2023/04/03 12:49:10 UTC

[GitHub] [camel] essobedo commented on a diff in pull request #9782: removed weird call of Class.getClass()

essobedo commented on code in PR #9782:
URL: https://github.com/apache/camel/pull/9782#discussion_r1155917866


##########
tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/generics/GenericsUtil.java:
##########
@@ -74,7 +74,7 @@ private static boolean isAssignableFrom(boolean isDelegateOrEvent, Class<?> inje
         } else if (beanType instanceof WildcardType) {
             return isAssignableFrom(isDelegateOrEvent, (Type) injectionPointType, (WildcardType) beanType);
         } else {
-            throw new IllegalArgumentException("Unsupported type " + injectionPointType.getClass());
+            throw new IllegalArgumentException("Unsupported type " + injectionPointType);

Review Comment:
   I'm wondering if it would make sense to do the same line 61



-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org