Author: davsclaus
Date: Tue Apr 17 05:10:57 2012
New Revision: 1326929

URL: http://svn.apache.org/viewvc?rev=1326929&view=rev
Log:
polished

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

Modified: 
camel/trunk/camel-core/src/main/java/org/apache/camel/impl/converter/PropertyEditorTypeConverter.java
URL: 
http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/converter/PropertyEditorTypeConverter.java?rev=1326929&r1=1326928&r2=1326929&view=diff
==============================================================================
--- 
camel/trunk/camel-core/src/main/java/org/apache/camel/impl/converter/PropertyEditorTypeConverter.java
 (original)
+++ 
camel/trunk/camel-core/src/main/java/org/apache/camel/impl/converter/PropertyEditorTypeConverter.java
 Tue Apr 17 05:10:57 2012
@@ -68,6 +68,7 @@ public class PropertyEditorTypeConverter
             Class<?> key = type;
             PropertyEditor editor = lookupEditor(key);
             if (editor != null) {
+                // we are essentially not thread safe as we use 2 calls to 
convert
                 editor.setAsText(value.toString());
                 return ObjectHelper.cast(type, editor.getValue());
             }
@@ -75,6 +76,7 @@ public class PropertyEditorTypeConverter
             Class<?> key = value.getClass();
             PropertyEditor editor = lookupEditor(key);
             if (editor != null) {
+                // we are essentially not thread safe as we use 2 calls to 
convert
                 editor.setValue(value);
                 return ObjectHelper.cast(type, editor.getAsText());
             }


Reply via email to