From 90ada11a518f0cbd81b757cd32237e902865bbb9 Mon Sep 17 00:00:00 2001 From: dev-mlb <19797865+dev-mlb@users.noreply.github.com> Date: Mon, 21 Oct 2024 13:38:45 -0400 Subject: [PATCH] errorprone :: MethodCanBeStatic --- src/main/java/emissary/server/EmissaryServer.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/emissary/server/EmissaryServer.java b/src/main/java/emissary/server/EmissaryServer.java index 95713de3cd..b4a0bb45e4 100644 --- a/src/main/java/emissary/server/EmissaryServer.java +++ b/src/main/java/emissary/server/EmissaryServer.java @@ -658,7 +658,7 @@ private ContextHandler buildEmissaryHandler() throws EmissaryException { return emissaryHolderContext; } - private ContextHandler buildLogbackConfigHandler() { + private static ContextHandler buildLogbackConfigHandler() { ServletHolder lbHolder = new ServletHolder("logback-config-holder", ViewStatusMessagesServlet.class); ServletContextHandler lbHolderContext = new ServletContextHandler(ServletContextHandler.SESSIONS); lbHolderContext.addServlet(lbHolder, "/*"); @@ -705,7 +705,7 @@ private ServerConnector createServerConnector(Server server) throws IOException * @param server the Jetty HTTP Servlet Server * @return server connector that is the primary connector for the Jetty server over TCP/IP */ - private ServerConnector createHttpConnector(Server server) { + private static ServerConnector createHttpConnector(Server server) { return new ServerConnector(server); } @@ -754,7 +754,7 @@ private SecureRequestCustomizer createSecureRequestCustomizer() { * @return SslContextFactory that is used to configure SSL parameters to be used by server connectors * @throws IOException if there is an error getting the context factory */ - private SslContextFactory.Server getSslContextFactory() throws IOException { + private static SslContextFactory.Server getSslContextFactory() throws IOException { Configurator httpConnFactCfg = ConfigUtil.getConfigInfo(HTTPConnectionFactory.class); String keystore = httpConnFactCfg.findStringEntry("javax.net.ssl.keyStore", "no-keystore"); System.setProperty("javax.net.ssl.keyStore", keystore);