Repository: camel Updated Branches: refs/heads/master f80e47736 -> 59e42d703
CAMEL-11379: Optimise - core type converters to be invoked faster Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/59e42d70 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/59e42d70 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/59e42d70 Branch: refs/heads/master Commit: 59e42d703dfcd85c5981b0a2fb7ae961347f1b77 Parents: f80e477 Author: Claus Ibsen <davscl...@apache.org> Authored: Sat Jun 24 21:16:28 2017 +0200 Committer: Claus Ibsen <davscl...@apache.org> Committed: Sat Jun 24 21:16:28 2017 +0200 ---------------------------------------------------------------------- .../org/apache/camel/impl/converter/BaseTypeConverterRegistry.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/59e42d70/camel-core/src/main/java/org/apache/camel/impl/converter/BaseTypeConverterRegistry.java ---------------------------------------------------------------------- diff --git a/camel-core/src/main/java/org/apache/camel/impl/converter/BaseTypeConverterRegistry.java b/camel-core/src/main/java/org/apache/camel/impl/converter/BaseTypeConverterRegistry.java index 7c6f401..114c3b5 100644 --- a/camel-core/src/main/java/org/apache/camel/impl/converter/BaseTypeConverterRegistry.java +++ b/camel-core/src/main/java/org/apache/camel/impl/converter/BaseTypeConverterRegistry.java @@ -274,7 +274,7 @@ public abstract class BaseTypeConverterRegistry extends ServiceSupport implement } // special for NaN numbers, which we can only convert for floating numbers - if (value instanceof Number && (value.equals(Float.NaN) || value.equals(Double.NaN))) { + if ((value instanceof Float && value.equals(Float.NaN)) || (value instanceof Double && value.equals(Double.NaN))) { // no type conversion was needed if (statistics.isStatisticsEnabled()) { noopCounter.increment();