diff --git a/httpclient/src/main/java/org/apache/hc/client5/http/impl/sync/ResponseEntityProxy.java b/httpclient/src/main/java/org/apache/hc/client5/http/impl/sync/ResponseEntityProxy.java index 4b58fd378..15927126d 100644 --- a/httpclient/src/main/java/org/apache/hc/client5/http/impl/sync/ResponseEntityProxy.java +++ b/httpclient/src/main/java/org/apache/hc/client5/http/impl/sync/ResponseEntityProxy.java @@ -67,13 +67,13 @@ class ResponseEntityProxy extends HttpEntityWrapper implements EofSensorWatcher } } - private void abortConnection() throws IOException { + private void abortConnection() { if (this.connHolder != null) { this.connHolder.abortConnection(); } } - public void releaseConnection() throws IOException { + public void releaseConnection() { if (this.connHolder != null) { this.connHolder.releaseConnection(); }