From 5a96d1f218146552a46ec629b2bb03b8210fcb05 Mon Sep 17 00:00:00 2001 From: Oleg Kalnichevski Date: Sat, 10 May 2008 15:20:42 +0000 Subject: [PATCH] Fixed the use of Lists with generics git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@655107 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/http/client/entity/UrlEncodedFormEntity.java | 4 ++-- .../java/org/apache/http/client/utils/URLEncodedUtils.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/module-client/src/main/java/org/apache/http/client/entity/UrlEncodedFormEntity.java b/module-client/src/main/java/org/apache/http/client/entity/UrlEncodedFormEntity.java index 64e177494..bf1ea61ac 100644 --- a/module-client/src/main/java/org/apache/http/client/entity/UrlEncodedFormEntity.java +++ b/module-client/src/main/java/org/apache/http/client/entity/UrlEncodedFormEntity.java @@ -52,7 +52,7 @@ public class UrlEncodedFormEntity extends StringEntity { * @throws UnsupportedEncodingException if the encoding isn't supported */ public UrlEncodedFormEntity ( - final List parameters, + final List parameters, final String encoding) throws UnsupportedEncodingException { super(URLEncodedUtils.format(parameters, encoding), encoding); @@ -67,7 +67,7 @@ public class UrlEncodedFormEntity extends StringEntity { * @throws UnsupportedEncodingException if the default encoding isn't supported */ public UrlEncodedFormEntity ( - final List parameters) throws UnsupportedEncodingException { + final List parameters) throws UnsupportedEncodingException { super(URLEncodedUtils.format(parameters, HTTP.DEFAULT_CONTENT_CHARSET), HTTP.DEFAULT_CONTENT_CHARSET); setContentType(URLEncodedUtils.CONTENT_TYPE); diff --git a/module-client/src/main/java/org/apache/http/client/utils/URLEncodedUtils.java b/module-client/src/main/java/org/apache/http/client/utils/URLEncodedUtils.java index cdf662e74..0ebdf855f 100644 --- a/module-client/src/main/java/org/apache/http/client/utils/URLEncodedUtils.java +++ b/module-client/src/main/java/org/apache/http/client/utils/URLEncodedUtils.java @@ -154,7 +154,7 @@ public class URLEncodedUtils { * @param encoding The encoding to use. */ public static String format ( - final List parameters, + final List parameters, final String encoding) { final StringBuilder result = new StringBuilder(); for (final NameValuePair parameter : parameters) {