Return-Path: X-Original-To: apmail-hc-dev-archive@www.apache.org Delivered-To: apmail-hc-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7C5FB9595 for ; Wed, 25 Apr 2012 08:49:41 +0000 (UTC) Received: (qmail 75043 invoked by uid 500); 25 Apr 2012 08:49:41 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 75004 invoked by uid 500); 25 Apr 2012 08:49:41 -0000 Mailing-List: contact dev-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 dev@hc.apache.org Received: (qmail 74993 invoked by uid 99); 25 Apr 2012 08:49:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Apr 2012 08:49:41 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sebbaz@gmail.com designates 209.85.214.179 as permitted sender) Received: from [209.85.214.179] (HELO mail-ob0-f179.google.com) (209.85.214.179) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Apr 2012 08:49:35 +0000 Received: by obbup19 with SMTP id up19so82385obb.10 for ; Wed, 25 Apr 2012 01:49:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=Im02hRYDBhuN7nPdTVlh82yg5w+dogc8zFufIByoa5I=; b=lqe6cHHgAG2r/UkX/dBy2fLLii4k1TMCm8HwkmqqwrrDwThX2vZQ49sDr279dwT9NG N/Jbj9S6zdGSVOjBk9aSfFJ4AjRj3f57mOK2wRkwQWOZhJ1yGVCj4f01qdTEA4/e1jaF kPGI6gdoikNXbeXvFvhPT8A85V5G6pKqESct/xkbIE0MJTHYU6H8de4mdiikBNmA1qW0 0IQt6k9bvxNe09BlzDAGfvHrOK0/dJd4XbqXZzgZmUrXl658VjKPEBda+ldFgq19eVWW gLdFZGvAQOlCPRIUJMtwMNmnehmP9hZ05ysaVcfCvdC+JVfjRbPJrndnzBeR1bQeGgS3 4REA== MIME-Version: 1.0 Received: by 10.60.29.39 with SMTP id g7mr2313127oeh.6.1335343754449; Wed, 25 Apr 2012 01:49:14 -0700 (PDT) Received: by 10.182.90.230 with HTTP; Wed, 25 Apr 2012 01:49:14 -0700 (PDT) In-Reply-To: <1335343473.27980.4.camel@ubuntu> References: <1335343473.27980.4.camel@ubuntu> Date: Wed, 25 Apr 2012 09:49:14 +0100 Message-ID: Subject: Re: r1327298 StringEntity and NStringEntity static method deletions - intentional? From: sebb To: HttpComponents Project Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On 25 April 2012 09:44, Oleg Kalnichevski wrote: > On Wed, 2012-04-25 at 01:39 +0100, sebb wrote: >> The log for r1327298 says: >> >> URL: http://svn.apache.org/viewvc?rev=1327298&view=rev >> Log: >> HTTPCORE-297: ContentType to use Charset instead of String to >> represent the charset parameter >> >> However, the commit also removed some static methods from StringEntity >> [1] and NStringEntity [2] - was that intentional? >> > > Yes, it was intentional. Those static #create method were primarily > needed to re-throw checked UnspportedEncodingException as unchecked > IllegalArgumentException. Since charset validation moved to the > ContentType class there was no longer any good reason for having static > #create method in StringEntity and NStringEntity. OK, in that case one of the HttpClient test cases needs fixing: client.TestBasicResponseHandler.testSuccessfulResponse() calls StringEntity.create() > Oleg > >> [1] http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/entity/StringEntity.java?rev=1327298&r1=1327297&r2=1327298&view=diff >> >> >> [2] http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/nio/entity/NStringEntity.java?view=diff&r1=1327297&r2=1327298&pathrev=1327298 >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org >> For additional commands, e-mail: dev-help@hc.apache.org >> > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org > For additional commands, e-mail: dev-help@hc.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org For additional commands, e-mail: dev-help@hc.apache.org