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
This commit is contained in:
parent
ea9662ee39
commit
0533ce7c53
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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()) {
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue