davsclaus commented on a change in pull request #6081: URL: https://github.com/apache/camel/pull/6081#discussion_r707598009
########## File path: core/camel-util/src/main/java/org/apache/camel/util/ObjectHelper.java ########## @@ -1151,7 +1138,8 @@ public static String lookupConstantFieldValue(Class<?> clazz, String name) { * @return <tt>true</tt> if its a {@link Float#NaN} or {@link Double#NaN}. */ public static boolean isNaN(Object value) { - return value instanceof Number && (FLOAT_NAN.equals(value) || DOUBLE_NAN.equals(value)); + return value instanceof Number Review comment: I think you can check if value instanceof Float elseif ... Double -- 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-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org