Skip to content

Commit

Permalink
errorprone :: MethodCanBeStatic
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-mlb committed Oct 21, 2024
1 parent 16aac99 commit 90ada11
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/emissary/server/EmissaryServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -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, "/*");
Expand Down Expand Up @@ -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);
}

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 90ada11

Please sign in to comment.