Update deprecation JavaDoc for ExoPlayer DataSpec

constructor to note that the builder does NOT
infer the http method from the existence of the
post body.

PiperOrigin-RevId: 316765677
This commit is contained in:
olly 2020-06-16 23:04:33 +01:00 committed by Andrew Lewis
parent c808db9935
commit f85098a88f

View File

@ -518,7 +518,8 @@ public final class DataSpec {
* set to {@link #HTTP_METHOD_POST}. If {@code postBody} is null then {@link #httpMethod} is set
* to {@link #HTTP_METHOD_GET}.
*
* @deprecated Use {@link Builder}.
* @deprecated Use {@link Builder}. Note that the httpMethod must be set explicitly for the
* Builder.
* @param uri {@link #uri}.
* @param postBody {@link #httpBody} The body of the HTTP request, which is also used to infer the
* {@link #httpMethod}.