diff --git a/httpmime/src/main/java/org/apache/http/entity/mime/MultipartEntityBuilder.java b/httpmime/src/main/java/org/apache/http/entity/mime/MultipartEntityBuilder.java index 5bbb1dbd4..59e4ccc7a 100644 --- a/httpmime/src/main/java/org/apache/http/entity/mime/MultipartEntityBuilder.java +++ b/httpmime/src/main/java/org/apache/http/entity/mime/MultipartEntityBuilder.java @@ -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;