From 0533ce7c5315ae9a899664cc2066b788172b7417 Mon Sep 17 00:00:00 2001 From: Sebastian Bazley Date: Mon, 17 Jun 2013 13:15:48 +0000 Subject: [PATCH] Remove unthrown exceptions from private and package methods git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1493752 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/http/impl/client/cache/CachingExec.java | 2 +- .../client/cache/memcached/MemcachedHttpCacheStorage.java | 2 +- .../http/client/protocol/RequestAuthenticationBase.java | 2 +- .../java/org/apache/http/impl/execchain/MainClientExec.java | 4 ++-- .../org/apache/http/impl/execchain/ResponseEntityWrapper.java | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/CachingExec.java b/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/CachingExec.java index c55487338..92cdfbb52 100644 --- a/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/CachingExec.java +++ b/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/CachingExec.java @@ -302,7 +302,7 @@ public class CachingExec implements ClientExecChain { final HttpClientContext context, final HttpExecutionAware execAware, final HttpCacheEntry entry, - final Date now) throws IOException, HttpException { + final Date now) throws HttpException { try { if (asynchRevalidator != null diff --git a/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/memcached/MemcachedHttpCacheStorage.java b/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/memcached/MemcachedHttpCacheStorage.java index 908b236b9..58820ab8d 100644 --- a/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/memcached/MemcachedHttpCacheStorage.java +++ b/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/memcached/MemcachedHttpCacheStorage.java @@ -201,7 +201,7 @@ public class MemcachedHttpCacheStorage implements HttpCacheStorage { return (byte[])o; } - private MemcachedCacheEntry reconstituteEntry(final Object o) throws IOException { + private MemcachedCacheEntry reconstituteEntry(final Object o) { final byte[] bytes = convertToByteArray(o); if (bytes == null) { return null; diff --git a/httpclient/src/main/java/org/apache/http/client/protocol/RequestAuthenticationBase.java b/httpclient/src/main/java/org/apache/http/client/protocol/RequestAuthenticationBase.java index df37a472c..62466b749 100644 --- a/httpclient/src/main/java/org/apache/http/client/protocol/RequestAuthenticationBase.java +++ b/httpclient/src/main/java/org/apache/http/client/protocol/RequestAuthenticationBase.java @@ -57,7 +57,7 @@ abstract class RequestAuthenticationBase implements HttpRequestInterceptor { void process( final AuthState authState, final HttpRequest request, - final HttpContext context) throws HttpException, IOException { + final HttpContext context) { AuthScheme authScheme = authState.getAuthScheme(); Credentials creds = authState.getCredentials(); switch (authState.getState()) { diff --git a/httpclient/src/main/java/org/apache/http/impl/execchain/MainClientExec.java b/httpclient/src/main/java/org/apache/http/impl/execchain/MainClientExec.java index 8847ca50e..3100c66f5 100644 --- a/httpclient/src/main/java/org/apache/http/impl/execchain/MainClientExec.java +++ b/httpclient/src/main/java/org/apache/http/impl/execchain/MainClientExec.java @@ -510,7 +510,7 @@ public class MainClientExec implements ClientExecChain { private boolean createTunnelToProxy( final HttpRoute route, final int hop, - final HttpClientContext context) throws HttpException, IOException { + final HttpClientContext context) throws HttpException { // Have a look at createTunnelToTarget and replicate the parts // you need in a custom derived class. If your proxies don't require @@ -530,7 +530,7 @@ public class MainClientExec implements ClientExecChain { final HttpRoute route, final HttpRequestWrapper request, final HttpResponse response, - final HttpClientContext context) throws HttpException, IOException { + final HttpClientContext context) { final RequestConfig config = context.getRequestConfig(); if (config.isAuthenticationEnabled()) { HttpHost target = context.getTargetHost(); diff --git a/httpclient/src/main/java/org/apache/http/impl/execchain/ResponseEntityWrapper.java b/httpclient/src/main/java/org/apache/http/impl/execchain/ResponseEntityWrapper.java index c19e10c69..bc2fe03a6 100644 --- a/httpclient/src/main/java/org/apache/http/impl/execchain/ResponseEntityWrapper.java +++ b/httpclient/src/main/java/org/apache/http/impl/execchain/ResponseEntityWrapper.java @@ -55,7 +55,7 @@ class ResponseEntityWrapper extends HttpEntityWrapper implements EofSensorWatche this.connReleaseTrigger = connReleaseTrigger; } - private void cleanup() throws IOException { + private void cleanup() { if (this.connReleaseTrigger != null) { this.connReleaseTrigger.abortConnection(); }