Commits

tm_jee  committed fece384

- corrected logging (in debug level) for field-level and global-level. They should be in the if block.

git-svn-id: http://svn.opensymphony.com/svn/xwork/trunk@1174e221344d-f017-0410-9bd5-d282ab1896d7

  • Participants
  • Parent commits d64a26c

Comments (0)

Files changed (1)

File src/java/com/opensymphony/xwork2/util/XWorkConverter.java

             }
 
             tc = (TypeConverter) getConverter(clazz, property);
+            
+            if (LOG.isDebugEnabled())
+                LOG.debug("field-level type converter for property ["+property+"] = "+(tc==null?"none found":tc));
         }
-        if (LOG.isDebugEnabled())
-            LOG.debug("field-level type converter for property ["+property+"] = "+(tc==null?"none found":tc));
+        
 
         if (tc == null) {
             if (toClass.equals(String.class) && (value != null) && !(value.getClass().equals(String.class) || value.getClass().equals(String[].class)))
                 // when converting from a string, use the toClass's converter
                 tc = lookup(toClass);
             }
+            
+            if (LOG.isDebugEnabled())
+                LOG.debug("global-level type converter for property ["+property+"] = "+(tc==null?"none found":tc));
         }
-        if (LOG.isDebugEnabled())
-            LOG.debug("global-level type converter for property ["+property+"] = "+(tc==null?"none found":tc));
+        
         
 
         if (tc != null) {