svn commit: r661565 - /activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/converter/InstanceMethodTypeConverter.java

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

svn commit: r661565 - /activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/converter/InstanceMethodTypeConverter.java

hadrian-3
Author: hadrian
Date: Thu May 29 21:34:35 2008
New Revision: 661565

URL: http://svn.apache.org/viewvc?rev=661565&view=rev
Log:
Removed unnecessary synchronize in InstanceMethodTypeConverter.

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

Modified: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/converter/InstanceMethodTypeConverter.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/converter/InstanceMethodTypeConverter.java?rev=661565&r1=661564&r2=661565&view=diff
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/converter/InstanceMethodTypeConverter.java (original)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/converter/InstanceMethodTypeConverter.java Thu May 29 21:34:35 2008
@@ -42,7 +42,7 @@
         return "InstanceMethodTypeConverter: " + method;
     }
 
-    public synchronized <T> T convertTo(Class<T> type, Object value) {
+    public <T> T convertTo(Class<T> type, Object value) {
         Object instance = injector.newInstance();
         if (instance == null) {
             throw new RuntimeCamelException("Could not instantiate an instance of: " + type.getName());