Make the WebSocketServerContainer initialize methods private

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
Lachlan Roberts 2020-01-30 15:01:15 +11:00
parent 1b10e2330e
commit b4d2ccc6b8
2 changed files with 2 additions and 2 deletions

View File

@ -148,7 +148,7 @@ public class JavaxWebSocketServletContainerInitializer implements ServletContain
* @param context the context to work with
* @return the default {@link ServerContainer} for this context
*/
public static ServerContainer initialize(ServletContextHandler context)
private static ServerContainer initialize(ServletContextHandler context)
{
JavaxWebSocketServerContainer serverContainer = JavaxWebSocketServerContainer.getContainer(context.getServletContext());
if (serverContainer == null)

View File

@ -87,7 +87,7 @@ public class JettyWebSocketServletContainerInitializer implements ServletContain
* @param context the context to work with
* @return the default {@link JettyWebSocketServerContainer}
*/
public static JettyWebSocketServerContainer initialize(ServletContextHandler context)
private static JettyWebSocketServerContainer initialize(ServletContextHandler context)
{
WebSocketComponents components = WebSocketComponents.ensureWebSocketComponents(context.getServletContext());
FilterHolder filterHolder = WebSocketUpgradeFilter.ensureFilter(context.getServletContext());