Return-Path: X-Original-To: apmail-hc-commits-archive@www.apache.org Delivered-To: apmail-hc-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B71B490A4 for ; Sun, 6 May 2012 13:58:44 +0000 (UTC) Received: (qmail 60400 invoked by uid 500); 6 May 2012 13:58:44 -0000 Delivered-To: apmail-hc-commits-archive@hc.apache.org Received: (qmail 60366 invoked by uid 500); 6 May 2012 13:58:44 -0000 Mailing-List: contact commits-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list commits@hc.apache.org Received: (qmail 60359 invoked by uid 99); 6 May 2012 13:58:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 06 May 2012 13:58:44 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 06 May 2012 13:58:42 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 32A3E23888CD for ; Sun, 6 May 2012 13:58:21 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1334630 - /httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/entity/UrlEncodedFormEntity.java Date: Sun, 06 May 2012 13:58:21 -0000 To: commits@hc.apache.org From: olegk@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120506135821.32A3E23888CD@eris.apache.org> Author: olegk Date: Sun May 6 13:58:20 2012 New Revision: 1334630 URL: http://svn.apache.org/viewvc?rev=1334630&view=rev Log: UrlEncodedFormEntity constructors added in 4.2 no longer throw UnsupportedEncodingException Modified: httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/entity/UrlEncodedFormEntity.java Modified: httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/entity/UrlEncodedFormEntity.java URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/entity/UrlEncodedFormEntity.java?rev=1334630&r1=1334629&r2=1334630&view=diff ============================================================================== --- httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/entity/UrlEncodedFormEntity.java (original) +++ httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/entity/UrlEncodedFormEntity.java Sun May 6 13:58:20 2012 @@ -58,8 +58,8 @@ public class UrlEncodedFormEntity extend public UrlEncodedFormEntity ( final List parameters, final String charset) throws UnsupportedEncodingException { - super(URLEncodedUtils.format(parameters, - charset != null ? charset : HTTP.DEF_CONTENT_CHARSET.name()), + super(URLEncodedUtils.format(parameters, + charset != null ? charset : HTTP.DEF_CONTENT_CHARSET.name()), ContentType.create(URLEncodedUtils.CONTENT_TYPE, charset)); } @@ -69,15 +69,14 @@ public class UrlEncodedFormEntity extend * * @param parameters iterable collection of name/value pairs * @param charset encoding the name/value pairs be encoded with - * @throws UnsupportedEncodingException if the encoding isn't supported * * @since 4.2 */ public UrlEncodedFormEntity ( final Iterable parameters, final Charset charset) { - super(URLEncodedUtils.format(parameters, - charset != null ? charset : HTTP.DEF_CONTENT_CHARSET), + super(URLEncodedUtils.format(parameters, + charset != null ? charset : HTTP.DEF_CONTENT_CHARSET), ContentType.create(URLEncodedUtils.CONTENT_TYPE, charset)); } @@ -98,12 +97,11 @@ public class UrlEncodedFormEntity extend * of parameters with the default encoding of {@link HTTP#DEFAULT_CONTENT_CHARSET} * * @param parameters iterable collection of name/value pairs - * @throws UnsupportedEncodingException if the default encoding isn't supported * * @since 4.2 */ public UrlEncodedFormEntity ( - final Iterable parameters) throws UnsupportedEncodingException { + final Iterable parameters) { this(parameters, null); }