hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1489242 - /httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/utils/URLEncodedUtils.java
Date Tue, 04 Jun 2013 00:18:35 GMT
Author: ggregory
Date: Tue Jun  4 00:18:35 2013
New Revision: 1489242

URL: http://svn.apache.org/r1489242
Log:
Match this kind of param name to the other methods in this class (encoding -> charset).

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

Modified: httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/utils/URLEncodedUtils.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/utils/URLEncodedUtils.java?rev=1489242&r1=1489241&r2=1489242&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/utils/URLEncodedUtils.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/utils/URLEncodedUtils.java
Tue Jun  4 00:18:35 2013
@@ -74,15 +74,15 @@ public class URLEncodedUtils {
      *
      * @param uri
      *            uri to parse
-     * @param encoding
-     *            encoding to use while parsing the query
+     * @param charset
+     *            charset name to use while parsing the query
      */
-    public static List <NameValuePair> parse (final URI uri, final String encoding)
{
+    public static List <NameValuePair> parse (final URI uri, final String charset)
{
         final String query = uri.getRawQuery();
         if (query != null && query.length() > 0) {
             final List<NameValuePair> result = new ArrayList<NameValuePair>();
             final Scanner scanner = new Scanner(query);
-            parse(result, scanner, encoding);
+            parse(result, scanner, charset);
             return result;
         } else {
             return Collections.emptyList();



Mime
View raw message