From 2514a058955197e2c0e59b676e57e8dd26d0c712 Mon Sep 17 00:00:00 2001 From: Jonathan Moore Date: Thu, 31 May 2012 18:25:49 +0000 Subject: [PATCH] Compiler warning cleanup: unused imports and unneeded @SuppressWarnings. git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1344851 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/http/client/protocol/ClientContextConfigurer.java | 3 --- .../org/apache/http/impl/client/DefaultRequestDirector.java | 1 - 2 files changed, 4 deletions(-) diff --git a/httpclient/src/main/java/org/apache/http/client/protocol/ClientContextConfigurer.java b/httpclient/src/main/java/org/apache/http/client/protocol/ClientContextConfigurer.java index b96735fbe..8fd1d105f 100644 --- a/httpclient/src/main/java/org/apache/http/client/protocol/ClientContextConfigurer.java +++ b/httpclient/src/main/java/org/apache/http/client/protocol/ClientContextConfigurer.java @@ -27,15 +27,12 @@ package org.apache.http.client.protocol; -import java.util.List; - import org.apache.http.annotation.NotThreadSafe; import org.apache.http.auth.AuthSchemeRegistry; import org.apache.http.client.CookieStore; import org.apache.http.client.CredentialsProvider; import org.apache.http.cookie.CookieSpecRegistry; -import org.apache.http.params.HttpParams; import org.apache.http.protocol.HttpContext; /** diff --git a/httpclient/src/main/java/org/apache/http/impl/client/DefaultRequestDirector.java b/httpclient/src/main/java/org/apache/http/impl/client/DefaultRequestDirector.java index bf05800c1..763802fcf 100644 --- a/httpclient/src/main/java/org/apache/http/impl/client/DefaultRequestDirector.java +++ b/httpclient/src/main/java/org/apache/http/impl/client/DefaultRequestDirector.java @@ -931,7 +931,6 @@ public class DefaultRequestDirector implements RequestDirector { } } - @SuppressWarnings("null") // can't be null int status = response.getStatusLine().getStatusCode(); if (status > 299) {