Reformat with GJF
Change-Id: I25aabd8bfee98a8849f986f2f98fa0e5a81d17b0
diff --git a/src/main/java/com/googlesource/gerrit/plugins/healthcheck/HealthCheckExceptionHook.java b/src/main/java/com/googlesource/gerrit/plugins/healthcheck/HealthCheckExceptionHook.java
index bb95d22..b74b591 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/healthcheck/HealthCheckExceptionHook.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/healthcheck/HealthCheckExceptionHook.java
@@ -14,7 +14,6 @@
package com.googlesource.gerrit.plugins.healthcheck;
-import static com.google.gerrit.httpd.restapi.RestApiServlet.JSON_MAGIC;
import static com.googlesource.gerrit.plugins.healthcheck.filter.HealthCheckStatusFilter.GSON;
import static com.googlesource.gerrit.plugins.healthcheck.filter.HealthCheckStatusFilter.JSON_MAGIC_STRING;
import static javax.servlet.http.HttpServletResponse.SC_INTERNAL_SERVER_ERROR;
@@ -22,7 +21,6 @@
import com.google.gerrit.extensions.registration.DynamicSet;
import com.google.gerrit.server.ExceptionHook;
import com.google.inject.AbstractModule;
-import java.nio.charset.StandardCharsets;
import java.util.Optional;
public class HealthCheckExceptionHook implements ExceptionHook {
@@ -32,8 +30,7 @@
if (throwable instanceof HealthCheckFailedException exc) {
return Optional.of(
Status.create(
- SC_INTERNAL_SERVER_ERROR,
- JSON_MAGIC_STRING + GSON.toJson(exc.getResult())));
+ SC_INTERNAL_SERVER_ERROR, JSON_MAGIC_STRING + GSON.toJson(exc.getResult())));
}
return Optional.empty();
}
diff --git a/src/main/java/com/googlesource/gerrit/plugins/healthcheck/HealthCheckFailedException.java b/src/main/java/com/googlesource/gerrit/plugins/healthcheck/HealthCheckFailedException.java
index ee917ea..4ebba95 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/healthcheck/HealthCheckFailedException.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/healthcheck/HealthCheckFailedException.java
@@ -14,7 +14,6 @@
package com.googlesource.gerrit.plugins.healthcheck;
-
import java.util.Map;
public class HealthCheckFailedException extends Exception {
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 cb2a58a..5415bc2 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
@@ -44,7 +44,8 @@
public class HealthCheckStatusFilter extends AllRequestFilter {
public static final Gson GSON = OutputFormat.JSON.newGsonBuilder().create();
- public static final String JSON_MAGIC_STRING = new String(RestApiServlet.JSON_MAGIC, StandardCharsets.UTF_8);
+ public static final String JSON_MAGIC_STRING =
+ new String(RestApiServlet.JSON_MAGIC, StandardCharsets.UTF_8);
private final HealthCheckStatusEndpoint statusEndpoint;
private final String pluginName;