orpiske commented on code in PR #11656:
URL: https://github.com/apache/camel/pull/11656#discussion_r1347602770
##########
core/camel-base/src/main/java/org/apache/camel/impl/converter/CoreTypeConverterRegistry.java:
##########
@@ -107,7 +107,7 @@ private <T> T fastConvertTo(Class<T> type, Exchange
exchange, Object value) {
return null;
}
- if (type.isInstance(value)) {
+ if (type.equals(value.getClass())) {
Review Comment:
More specifically: the code is doing this check twice. I'm just making the
first check a bit lenient to avoid hitting a slow path in the JVM itself.
--
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]