svn commit: r935158 - /camel/trunk/components/camel-spring/src/main/java/org/apache/camel/component/ResourceBasedEndpoint.java

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r935158 - /camel/trunk/components/camel-spring/src/main/java/org/apache/camel/component/ResourceBasedEndpoint.java

ningjiang
Author: ningjiang
Date: Sat Apr 17 09:30:12 2010
New Revision: 935158

URL: http://svn.apache.org/viewvc?rev=935158&view=rev
Log:
CAMEL-2655 Fixed the unit test error of this change

Modified:
    camel/trunk/components/camel-spring/src/main/java/org/apache/camel/component/ResourceBasedEndpoint.java

Modified: camel/trunk/components/camel-spring/src/main/java/org/apache/camel/component/ResourceBasedEndpoint.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-spring/src/main/java/org/apache/camel/component/ResourceBasedEndpoint.java?rev=935158&r1=935157&r2=935158&view=diff
==============================================================================
--- camel/trunk/components/camel-spring/src/main/java/org/apache/camel/component/ResourceBasedEndpoint.java (original)
+++ camel/trunk/components/camel-spring/src/main/java/org/apache/camel/component/ResourceBasedEndpoint.java Sat Apr 17 09:30:12 2010
@@ -102,7 +102,7 @@ public abstract class ResourceBasedEndpo
             if (log.isDebugEnabled()) {
                 log.debug("Using resource: " + resourceUri + " from the content cache");
             }
-            is = new ByteArrayInputStream(buffer);
+            return new ByteArrayInputStream(buffer);
         }
         return getResourceAsInputStreamWithoutCache();
     }