r9851 - helma/helma/trunk/src/helma/main

[email protected] Fri, 14 Aug 2009 11:41:14 +0200 (CEST)
Newsgroups gmane.comp.java.helma.cvs
Message-ID <20090814094114.0E6E03D0E3@mia>
Author: hannes
Date: 2009-08-14 11:41:14 +0200 (Fri, 14 Aug 2009)
New Revision: 9851

Modified:
   helma/helma/trunk/src/helma/main/JettyServer.java
Log:
There doesn't seem to be a reason to cast Connector to SocketConnector in openListeners()

Details at http://dev.helma.org/trac/helma/changeset/9851

Modified: helma/helma/trunk/src/helma/main/JettyServer.java
===================================================================
--- helma/helma/trunk/src/helma/main/JettyServer.java	2009-08-12 11:16:33 UTC (rev 9850)
+++ helma/helma/trunk/src/helma/main/JettyServer.java	2009-08-14 09:41:14 UTC (rev 9851)
@@ -127,10 +127,7 @@
         // while start() will be called with the user we will actually run as
         Connector[] connectors = http.getConnectors();
         for (int i = 0; i < connectors.length; i++) {
-            if (connectors[i] instanceof SocketConnector) {
-                SocketConnector connector = (SocketConnector) connectors[i];
-                connector.open();
-            }
+            connectors[i].open();
         }
     }
 }