Minor generics tweak

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@755398 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Oleg Kalnichevski 2009-03-17 21:05:22 +00:00
parent 8e409a71d1
commit 48634b1b4b
1 changed files with 5 additions and 3 deletions

View File

@ -67,11 +67,13 @@ public class RequestDefaultHeaders implements HttpRequestInterceptor {
} }
// Add default headers // Add default headers
Collection<?> defHeaders = (Collection<?>) request.getParams().getParameter( @SuppressWarnings("unchecked")
Collection<Header> defHeaders = (Collection<Header>) request.getParams().getParameter(
ClientPNames.DEFAULT_HEADERS); ClientPNames.DEFAULT_HEADERS);
if (defHeaders != null) { if (defHeaders != null) {
for (Object defHeader : defHeaders) { for (Header defHeader : defHeaders) {
request.addHeader((Header) defHeader); request.addHeader(defHeader);
} }
} }
} }