camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject camel git commit: CAMEL-11379: Optimise - core type converters to be invoked faster
Date Sun, 25 Jun 2017 19:57:34 GMT
Repository: camel
Updated Branches:
  refs/heads/master 9c094e4dc -> 02b8bca7c


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/02b8bca7
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/02b8bca7
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/02b8bca7

Branch: refs/heads/master
Commit: 02b8bca7cf355b20fe0fc4e9b40dbfb07ca3dbd7
Parents: 9c094e4
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Sun Jun 25 21:57:25 2017 +0200
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Sun Jun 25 21:57:25 2017 +0200

----------------------------------------------------------------------
 .../java/org/apache/camel/converter/IOConverterOptimised.java   | 5 -----
 1 file changed, 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/02b8bca7/camel-core/src/main/java/org/apache/camel/converter/IOConverterOptimised.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/converter/IOConverterOptimised.java
b/camel-core/src/main/java/org/apache/camel/converter/IOConverterOptimised.java
index cddfda4..cddbb03 100644
--- a/camel-core/src/main/java/org/apache/camel/converter/IOConverterOptimised.java
+++ b/camel-core/src/main/java/org/apache/camel/converter/IOConverterOptimised.java
@@ -141,11 +141,6 @@ public final class IOConverterOptimised {
 
         if (type == ObjectInput.class) {
             if (fromType == InputStream.class || fromType == BufferedInputStream.class) {
-                // if the value is both an InputStream and StreamCache then ensure its readable
-                // before doing conversions by resetting it (this is also what StreamCachingAdvice
does)
-                if (value instanceof StreamCache) {
-                    ((StreamCache) value).reset();
-                }
                 return IOConverter.toObjectInput((InputStream) value, exchange);
             }
             return null;


Mime
View raw message