camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cschnei...@apache.org
Subject svn commit: r1164131 - /camel/trunk/camel-core/src/main/java/org/apache/camel/impl/converter/ToStringTypeConverter.java
Date Thu, 01 Sep 2011 16:17:57 GMT
Author: cschneider
Date: Thu Sep  1 16:17:57 2011
New Revision: 1164131

URL: http://svn.apache.org/viewvc?rev=1164131&view=rev
Log:
Use WrappedFile in ToStringConverter so it does not have to know about GenericFile

Modified:
    camel/trunk/camel-core/src/main/java/org/apache/camel/impl/converter/ToStringTypeConverter.java

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/impl/converter/ToStringTypeConverter.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/converter/ToStringTypeConverter.java?rev=1164131&r1=1164130&r2=1164131&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/impl/converter/ToStringTypeConverter.java
(original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/impl/converter/ToStringTypeConverter.java
Thu Sep  1 16:17:57 2011
@@ -21,8 +21,8 @@ import java.util.concurrent.Future;
 import org.apache.camel.Exchange;
 import org.apache.camel.Message;
 import org.apache.camel.TypeConverter;
+import org.apache.camel.WrappedFile;
 import org.apache.camel.component.bean.BeanInvocation;
-import org.apache.camel.component.file.GenericFile;
 
 /**
  * A simple converter that can convert any object to a String type by using the
@@ -52,7 +52,7 @@ public class ToStringTypeConverter imple
             }
 
             // should not try to convert files
-            if (GenericFile.class.isAssignableFrom(value.getClass())) {
+            if (WrappedFile.class.isAssignableFrom(value.getClass())) {
                 return (T) Void.TYPE;
             }
 



Mime
View raw message