commit | fb28ec7967a9724752137935ee9f450732ad31ac | [log] [tgz] |
---|---|---|
author | Matthias Sohn <matthias.sohn@sap.com> | Thu Mar 27 17:02:49 2025 +0100 |
committer | Matthias Sohn <matthias.sohn@sap.com> | Thu Mar 27 17:02:49 2025 +0100 |
tree | 4914aab9fc816e158e579721baa5c105c0d6b26e | |
parent | 01f46cdbd0625cb49030c4de39b70f3a399a2843 [diff] |
Don't declare IOException which is never thrown Change-Id: Ic50d6c3e4d5d14d95481681b5b65b1f4c9716f54
diff --git a/src/main/java/com/googlesource/gerrit/plugins/healthcheck/api/HealthCheckStatusEndpoint.java b/src/main/java/com/googlesource/gerrit/plugins/healthcheck/api/HealthCheckStatusEndpoint.java index 6819ae1..ed16539 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/healthcheck/api/HealthCheckStatusEndpoint.java +++ b/src/main/java/com/googlesource/gerrit/plugins/healthcheck/api/HealthCheckStatusEndpoint.java
@@ -24,7 +24,6 @@ import com.googlesource.gerrit.plugins.healthcheck.check.HealthCheck.Result; import java.io.File; import java.io.FileInputStream; -import java.io.IOException; import java.io.InputStream; import java.util.Map; import javax.servlet.http.HttpServletResponse; @@ -63,7 +62,7 @@ : HttpServletResponse.SC_OK; } - private boolean failFlagFileExists() throws IOException { + private boolean failFlagFileExists() { File file = new File(failedFileFlagPath); try (InputStream targetStream = new FileInputStream(file)) { return true;