This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push: new e9b609f330c Removed a call of Class.getClass().getClass() that is called on the instance of type Class<?> and additional getClass() call that could erase the type (#9812) e9b609f330c is described below commit e9b609f330c28d6a5eb2e7fb0b609a0f82f2ac1c Author: dk2k <d...@users.noreply.github.com> AuthorDate: Wed Apr 5 07:30:58 2023 +0300 Removed a call of Class.getClass().getClass() that is called on the instance of type Class<?> and additional getClass() call that could erase the type (#9812) Co-authored-by: dk2k <d...@ya.ru> --- .../java/org/apache/camel/maven/packaging/generics/GenericsUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/generics/GenericsUtil.java b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/generics/GenericsUtil.java index 0137a09e849..b901471e2c3 100644 --- a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/generics/GenericsUtil.java +++ b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/generics/GenericsUtil.java @@ -74,7 +74,7 @@ public final class GenericsUtil { } 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); } }