svn commit: r923102 - /ofbiz/trunk/framework/base/src/org/ofbiz/base/conversion/Converters.java

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

svn commit: r923102 - /ofbiz/trunk/framework/base/src/org/ofbiz/base/conversion/Converters.java

doogie-3
Author: doogie
Date: Mon Mar 15 07:26:58 2010
New Revision: 923102

URL: http://svn.apache.org/viewvc?rev=923102&view=rev
Log:
In PassThruConverterCreator, only use ObjectType.instanceOf, so that
there are no longer any unconvered branches on that line.

Modified:
    ofbiz/trunk/framework/base/src/org/ofbiz/base/conversion/Converters.java

Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/conversion/Converters.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/conversion/Converters.java?rev=923102&r1=923101&r2=923102&view=diff
==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/conversion/Converters.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/conversion/Converters.java Mon Mar 15 07:26:58 2010
@@ -188,7 +188,7 @@ OUTER:
         }
 
         public <S, T> Converter<S, T> createConverter(Class<S> sourceClass, Class<T> targetClass) {
-            if (sourceClass == targetClass || targetClass == Object.class || ObjectType.instanceOf(sourceClass, targetClass)) {
+            if (ObjectType.instanceOf(sourceClass, targetClass)) {
                 return new PassThruConverter<S, T>(sourceClass, targetClass);
             } else {
                 return null;