From 29bbcf6e2c3cf7133a1109c51d93fedc7e493b97 Mon Sep 17 00:00:00 2001 From: Valerij Fredriksen Date: Mon, 30 May 2022 09:24:53 +0200 Subject: Revert "uncheck() all checked exceptions" --- .../com/yahoo/document/restapi/resource/DocumentV1ApiHandler.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'vespaclient-container-plugin') diff --git a/vespaclient-container-plugin/src/main/java/com/yahoo/document/restapi/resource/DocumentV1ApiHandler.java b/vespaclient-container-plugin/src/main/java/com/yahoo/document/restapi/resource/DocumentV1ApiHandler.java index 34200a2393d..73bea9f7a00 100644 --- a/vespaclient-container-plugin/src/main/java/com/yahoo/document/restapi/resource/DocumentV1ApiHandler.java +++ b/vespaclient-container-plugin/src/main/java/com/yahoo/document/restapi/resource/DocumentV1ApiHandler.java @@ -3,8 +3,8 @@ package com.yahoo.document.restapi.resource; import com.fasterxml.jackson.core.JsonFactory; import com.fasterxml.jackson.core.JsonGenerator; -import com.yahoo.cloud.config.ClusterListConfig; import com.yahoo.component.annotation.Inject; +import com.yahoo.cloud.config.ClusterListConfig; import com.yahoo.concurrent.DaemonThreadFactory; import com.yahoo.concurrent.SystemTimer; import com.yahoo.container.core.HandlerMetricContextUtil; @@ -69,7 +69,7 @@ import com.yahoo.text.Text; import com.yahoo.vespa.config.content.AllClustersBucketSpacesConfig; import com.yahoo.vespa.http.server.MetricNames; import com.yahoo.yolean.Exceptions; -import com.yahoo.yolean.Exceptions.RunnableThrowingException; +import com.yahoo.yolean.Exceptions.RunnableThrowingIOException; import java.io.ByteArrayOutputStream; import java.io.IOException; @@ -850,7 +850,7 @@ public class DocumentV1ApiHandler extends AbstractRequestHandler { }); } - private static void loggingException(RunnableThrowingException runnable) { + private static void loggingException(RunnableThrowingIOException runnable) { try { runnable.run(); } -- cgit v1.2.3