Deprecated misspelled method

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1662809 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Oleg Kalnichevski 2015-02-27 20:26:09 +00:00
parent f798204f68
commit d1da745d03
1 changed files with 10 additions and 0 deletions

View File

@ -106,8 +106,18 @@ public class MultipartEntityBuilder {
/**
* @since 4.4
*
* @deprecated (4.5) Use {@link #setContentType(org.apache.http.entity.ContentType)}.
*/
@Deprecated
public MultipartEntityBuilder seContentType(final ContentType contentType) {
return setContentType(contentType);
}
/**
* @since 4.5
*/
public MultipartEntityBuilder setContentType(final ContentType contentType) {
Args.notNull(contentType, "Content type");
this.contentType = contentType;
return this;