openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject svn commit: r1680068 - in /openwebbeans/trunk: webbeans-arquillian/owb-arquillian-standalone/src/main/java/org/apache/webbeans/arquillian/standalone/UrlSet.java webbeans-impl/src/main/java/org/apache/webbeans/util/UrlSet.java
Date Mon, 18 May 2015 18:43:42 GMT
Author: struberg
Date: Mon May 18 18:43:42 2015
New Revision: 1680068

URL: http://svn.apache.org/r1680068
Log:
remove unnecessary null check

Modified:
    openwebbeans/trunk/webbeans-arquillian/owb-arquillian-standalone/src/main/java/org/apache/webbeans/arquillian/standalone/UrlSet.java
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/util/UrlSet.java

Modified: openwebbeans/trunk/webbeans-arquillian/owb-arquillian-standalone/src/main/java/org/apache/webbeans/arquillian/standalone/UrlSet.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-arquillian/owb-arquillian-standalone/src/main/java/org/apache/webbeans/arquillian/standalone/UrlSet.java?rev=1680068&r1=1680067&r2=1680068&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-arquillian/owb-arquillian-standalone/src/main/java/org/apache/webbeans/arquillian/standalone/UrlSet.java
(original)
+++ openwebbeans/trunk/webbeans-arquillian/owb-arquillian-standalone/src/main/java/org/apache/webbeans/arquillian/standalone/UrlSet.java
Mon May 18 18:43:42 2015
@@ -58,7 +58,7 @@ public class UrlSet implements Set<URL>
     @Override
     public boolean contains(Object o)
     {
-        if (o instanceof URL && o != null)
+        if (o instanceof URL)
         {
             return urlMap.containsKey(((URL) o).toExternalForm());
         }

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/util/UrlSet.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/util/UrlSet.java?rev=1680068&r1=1680067&r2=1680068&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/util/UrlSet.java (original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/util/UrlSet.java Mon
May 18 18:43:42 2015
@@ -55,7 +55,7 @@ public class UrlSet implements Set<URL>
     @Override
     public boolean contains(Object o)
     {
-        if (o instanceof URL && o != null)
+        if (o instanceof URL)
         {
             return urlMap.containsKey(((URL) o).toExternalForm());
         }



Mime
View raw message