Skip to content

Commit

Permalink
Renaming context handler variable on creation (strimzi#9478)
Browse files Browse the repository at this point in the history
Signed-off-by: Paolo Patierno <[email protected]>
  • Loading branch information
ppatierno authored Dec 21, 2023
1 parent e78c7bd commit b3a0028
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,11 @@ public HealthCheckAndMetricsServer(int port, Liveness liveness, Readiness readin

private static ContextHandler contextHandler(String path, Handler handler) {
LOGGER.debug("Configuring path {} with handler {}", path, handler);
ContextHandler metricsContext = new ContextHandler();
metricsContext.setContextPath(path);
metricsContext.setHandler(handler);
metricsContext.setAllowNullPathInfo(true);
return metricsContext;
ContextHandler contextHandler = new ContextHandler();
contextHandler.setContextPath(path);
contextHandler.setHandler(handler);
contextHandler.setAllowNullPathInfo(true);
return contextHandler;
}

/**
Expand Down

0 comments on commit b3a0028

Please sign in to comment.