sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject svn commit: r1553513 - /sis/branches/JDK7/core/sis-utility/src/main/java/org/apache/sis/util/collection/CodeListSet.java
Date Thu, 26 Dec 2013 17:08:16 GMT
Author: desruisseaux
Date: Thu Dec 26 17:08:16 2013
New Revision: 1553513

URL: http://svn.apache.org/r1553513
Log:
Removed redundant 'if (element == null)' check.

Modified:
    sis/branches/JDK7/core/sis-utility/src/main/java/org/apache/sis/util/collection/CodeListSet.java

Modified: sis/branches/JDK7/core/sis-utility/src/main/java/org/apache/sis/util/collection/CodeListSet.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK7/core/sis-utility/src/main/java/org/apache/sis/util/collection/CodeListSet.java?rev=1553513&r1=1553512&r2=1553513&view=diff
==============================================================================
--- sis/branches/JDK7/core/sis-utility/src/main/java/org/apache/sis/util/collection/CodeListSet.java
[UTF-8] (original)
+++ sis/branches/JDK7/core/sis-utility/src/main/java/org/apache/sis/util/collection/CodeListSet.java
[UTF-8] Thu Dec 26 17:08:16 2013
@@ -227,11 +227,7 @@ public class CodeListSet<E extends CodeL
                  */
                 return false;
             }
-            if (element == null) {
-                throw new NullArgumentException(message);
-            } else {
-                throw new IllegalArgumentException(message);
-            }
+            throw new NullArgumentException(message);
         }
         int ordinal = element.ordinal();
         if (ordinal < Long.SIZE) {



Mime
View raw message