svn commit: r923100 - /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: r923100 - /ofbiz/trunk/framework/base/src/org/ofbiz/base/conversion/Converters.java

doogie-3
Author: doogie
Date: Mon Mar 15 07:25:25 2010
New Revision: 923100

URL: http://svn.apache.org/viewvc?rev=923100&view=rev
Log:
Remove unused null check against targetClass in registerConverter.

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=923100&r1=923099&r2=923100&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:25:25 2010
@@ -176,11 +176,7 @@ OUTER:
             sb.append("<null>");
         }
         sb.append(DELIMITER);
-        if (targetClass != null) {
-            sb.append(targetClass.getName());
-        } else {
-            sb.append("<null>");
-        }
+        sb.append(targetClass.getName());
         String key = sb.toString();
         if (converterMap.putIfAbsent(key, converter) == null) {
             if (Debug.verboseOn()) {