You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Oleg Kalnichevski (JIRA)" <ji...@apache.org> on 2012/10/19 12:00:13 UTC
[jira] [Resolved] (HTTPCLIENT-1252) StringBody.create() makes no
sense
[ https://issues.apache.org/jira/browse/HTTPCLIENT-1252?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Oleg Kalnichevski resolved HTTPCLIENT-1252.
-------------------------------------------
Resolution: Fixed
Fix Version/s: 4.3 Alpha1
Ömer
StringBody#create methods have been deprecated in favor of MultipartEntityBuilder in 4.3
http://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk/httpmime/src/main/java/org/apache/http/entity/mime/MultipartEntityBuilder.java
Oleg
> StringBody.create() makes no sense
> ----------------------------------
>
> Key: HTTPCLIENT-1252
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1252
> Project: HttpComponents HttpClient
> Issue Type: Bug
> Components: HttpMime
> Affects Versions: 4.1.3
> Reporter: Ömer Yildiz
> Priority: Trivial
> Fix For: 4.3 Alpha1
>
>
> StringBody.java:
> {code}
> public static StringBody create(
> final String text, final Charset charset) throws IllegalArgumentException;
> public static StringBody create(
> final String text) throws IllegalArgumentException;
> {code}
> Both create methods are useless, because the MIME-Types defaults to null which AbstractContentBody does not allow.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org