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
|
// while start() will be called with the user we will actually run as
|
||||||
Connector[] connectors = http.getConnectors();
|
Connector[] connectors = http.getConnectors();
|
||||||
for (int i = 0; i < connectors.length; i++) {
|
for (int i = 0; i < connectors.length; i++) {
|
||||||
if (connectors[i] instanceof SocketConnector) {
|
connectors[i].open();
|
||||||
SocketConnector connector = (SocketConnector) connectors[i];
|
|
||||||
connector.open();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue