fix checkstyle

Signed-off-by: olivier lamy <oliver.lamy@gmail.com>
This commit is contained in:
olivier lamy 2019-07-09 18:27:14 +10:00
parent 81f433a975
commit 352d1e7c3b
1 changed files with 1 additions and 1 deletions

View File

@ -329,7 +329,6 @@ public abstract class ClientUpgradeRequest extends HttpRequest implements Respon
} }
// Negotiate the extension stack // Negotiate the extension stack
HttpClient httpClient = wsClient.getHttpClient();
ExtensionStack extensionStack = new ExtensionStack(wsClient.getWebSocketComponents(), Behavior.CLIENT); ExtensionStack extensionStack = new ExtensionStack(wsClient.getWebSocketComponents(), Behavior.CLIENT);
extensionStack.negotiate(offeredExtensions, negotiatedExtensions); extensionStack.negotiate(offeredExtensions, negotiatedExtensions);
@ -370,6 +369,7 @@ public abstract class ClientUpgradeRequest extends HttpRequest implements Respon
WebSocketCoreSession coreSession = newWebSocketCoreSession(frameHandler, negotiated); WebSocketCoreSession coreSession = newWebSocketCoreSession(frameHandler, negotiated);
customizer.customize(coreSession); customizer.customize(coreSession);
HttpClient httpClient = wsClient.getHttpClient();
WebSocketConnection wsConnection = newWebSocketConnection(endp, httpClient.getExecutor(), httpClient.getScheduler(), httpClient.getByteBufferPool(), coreSession); WebSocketConnection wsConnection = newWebSocketConnection(endp, httpClient.getExecutor(), httpClient.getScheduler(), httpClient.getByteBufferPool(), coreSession);
for (Connection.Listener listener : wsClient.getBeans(Connection.Listener.class)) for (Connection.Listener listener : wsClient.getBeans(Connection.Listener.class))