From 1d9f4dad93accb45d01acde5198f43d8c372fc26 Mon Sep 17 00:00:00 2001 From: "Gary D. Gregory" Date: Wed, 20 Jan 2016 19:18:46 +0000 Subject: [PATCH] Declared exception is not actually thrown by the method. git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1725781 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/hc/client5/http/impl/sync/ResponseEntityProxy.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); }