commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brit...@apache.org
Subject svn commit: r1712416 - /commons/sandbox/beanutils2/trunk/src/test/java/org/apache/commons/beanutils2/TransformerRegistryTestCase.java
Date Tue, 03 Nov 2015 21:12:35 GMT
Author: britter
Date: Tue Nov  3 21:12:35 2015
New Revision: 1712416

URL: http://svn.apache.org/viewvc?rev=1712416&view=rev
Log:
className can not be null at this point

Modified:
    commons/sandbox/beanutils2/trunk/src/test/java/org/apache/commons/beanutils2/TransformerRegistryTestCase.java

Modified: commons/sandbox/beanutils2/trunk/src/test/java/org/apache/commons/beanutils2/TransformerRegistryTestCase.java
URL: http://svn.apache.org/viewvc/commons/sandbox/beanutils2/trunk/src/test/java/org/apache/commons/beanutils2/TransformerRegistryTestCase.java?rev=1712416&r1=1712415&r2=1712416&view=diff
==============================================================================
--- commons/sandbox/beanutils2/trunk/src/test/java/org/apache/commons/beanutils2/TransformerRegistryTestCase.java
(original)
+++ commons/sandbox/beanutils2/trunk/src/test/java/org/apache/commons/beanutils2/TransformerRegistryTestCase.java
Tue Nov  3 21:12:35 2015
@@ -187,7 +187,7 @@ public class TransformerRegistryTestCase
             className = className.substring("class ".length());
         }
 
-        if (className == null || className.isEmpty()) {
+        if (className.isEmpty()) {
             throw new IllegalArgumentException(
                     "Invalid sourceType in Transformer instance");
         }



Mime
View raw message