hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r655107 - in /httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/client: entity/UrlEncodedFormEntity.java utils/URLEncodedUtils.java
Date Sat, 10 May 2008 15:20:42 GMT
Author: olegk
Date: Sat May 10 08:20:42 2008
New Revision: 655107

URL: http://svn.apache.org/viewvc?rev=655107&view=rev
Log:
Fixed the use of Lists with generics

Modified:
    httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/client/entity/UrlEncodedFormEntity.java
    httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/client/utils/URLEncodedUtils.java

Modified: httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/client/entity/UrlEncodedFormEntity.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/client/entity/UrlEncodedFormEntity.java?rev=655107&r1=655106&r2=655107&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/client/entity/UrlEncodedFormEntity.java
(original)
+++ httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/client/entity/UrlEncodedFormEntity.java
Sat May 10 08:20:42 2008
@@ -52,7 +52,7 @@
      * @throws UnsupportedEncodingException if the encoding isn't supported
      */
     public UrlEncodedFormEntity (
-        final List <NameValuePair> parameters, 
+        final List <? extends NameValuePair> parameters, 
         final String encoding) throws UnsupportedEncodingException {
         super(URLEncodedUtils.format(parameters, encoding), 
             encoding);
@@ -67,7 +67,7 @@
      * @throws UnsupportedEncodingException if the default encoding isn't supported
      */
     public UrlEncodedFormEntity (
-        final List <NameValuePair> parameters) throws UnsupportedEncodingException
{
+        final List <? extends NameValuePair> parameters) throws UnsupportedEncodingException
{
         super(URLEncodedUtils.format(parameters, HTTP.DEFAULT_CONTENT_CHARSET), 
             HTTP.DEFAULT_CONTENT_CHARSET);
         setContentType(URLEncodedUtils.CONTENT_TYPE);

Modified: httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/client/utils/URLEncodedUtils.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/client/utils/URLEncodedUtils.java?rev=655107&r1=655106&r2=655107&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/client/utils/URLEncodedUtils.java
(original)
+++ httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/client/utils/URLEncodedUtils.java
Sat May 10 08:20:42 2008
@@ -154,7 +154,7 @@
      * @param encoding The encoding to use.
      */
     public static String format (
-            final List <NameValuePair> parameters, 
+            final List <? extends NameValuePair> parameters, 
             final String encoding) {
         final StringBuilder result = new StringBuilder();
         for (final NameValuePair parameter : parameters) {



Mime
View raw message