Author: doogie
Date: Mon Mar 15 07:26:58 2010
New Revision: 923102
URL:
http://svn.apache.org/viewvc?rev=923102&view=revLog:
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;