tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kkoli...@apache.org
Subject svn commit: r1600607 - /tomcat/trunk/java/org/apache/catalina/core/StandardContext.java
Date Thu, 05 Jun 2014 11:27:31 GMT
Author: kkolinko
Date: Thu Jun  5 11:27:30 2014
New Revision: 1600607

URL: http://svn.apache.org/r1600607
Log:
Remove null check, as "instanceof" condition on the next line takes care of nulls.

Modified:
    tomcat/trunk/java/org/apache/catalina/core/StandardContext.java

Modified: tomcat/trunk/java/org/apache/catalina/core/StandardContext.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/core/StandardContext.java?rev=1600607&r1=1600606&r2=1600607&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/core/StandardContext.java (original)
+++ tomcat/trunk/java/org/apache/catalina/core/StandardContext.java Thu Jun  5 11:27:30 2014
@@ -4748,8 +4748,6 @@ public class StandardContext extends Con
                     getServletContext()));
         }
         for (int i = 0; i < instances.length; i++) {
-            if (instances[i] == null)
-                continue;
             if (!(instances[i] instanceof ServletContextListener))
                 continue;
             ServletContextListener listener =



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message