There doesn't seem to be a reason to cast Connector to SocketConnector in openListeners()
This commit is contained in:
parent
e113cd9687
commit
4f5a119d6a
1 changed files with 1 additions and 4 deletions
|
@ -127,10 +127,7 @@ public class JettyServer {
|
|||
// 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue