commit | 74267b19cd96c11568850fe974d175ba5da934cc | [log] [tgz] |
---|---|---|
author | Matthias Sohn <matthias.sohn@sap.com> | Wed Jan 31 00:22:41 2024 +0100 |
committer | Matthias Sohn <matthias.sohn@sap.com> | Wed Jan 31 00:22:41 2024 +0100 |
tree | 84e41f029b753ef7fbdc7d5e354e005e9da6e28b | |
parent | 5143507fc0cfda89d709d6abc6bcabf14f5c30f7 [diff] |
Remove unnecessary cast Change-Id: Id017f1f4251fe5b1700be8565094df96e103d000
diff --git a/src/main/java/com/googlesource/gerrit/plugins/healthcheck/filter/HealthCheckStatusFilter.java b/src/main/java/com/googlesource/gerrit/plugins/healthcheck/filter/HealthCheckStatusFilter.java index 75e48fd..a6f33ea 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/healthcheck/filter/HealthCheckStatusFilter.java +++ b/src/main/java/com/googlesource/gerrit/plugins/healthcheck/filter/HealthCheckStatusFilter.java
@@ -72,8 +72,7 @@ private void doStatusCheck(HttpServletResponse httpResponse) throws ServletException { try { - Response<Map<String, Object>> healthStatus = - (Response<Map<String, Object>>) statusEndpoint.apply(new ConfigResource()); + Response<Map<String, Object>> healthStatus = statusEndpoint.apply(new ConfigResource()); String healthStatusJson = gson.toJson(healthStatus.value()); if (healthStatus.statusCode() == HttpServletResponse.SC_OK) { PrintWriter writer = httpResponse.getWriter();