camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hadr...@apache.org
Subject svn commit: r661565 - /activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/converter/InstanceMethodTypeConverter.java
Date Fri, 30 May 2008 04:34:36 GMT
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());



Mime
View raw message