From f85098a88f441afa89693cd77d748fbd9046e32e Mon Sep 17 00:00:00 2001 From: olly Date: Tue, 16 Jun 2020 23:04:33 +0100 Subject: [PATCH] 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 --- .../java/com/google/android/exoplayer2/upstream/DataSpec.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/common/src/main/java/com/google/android/exoplayer2/upstream/DataSpec.java b/library/common/src/main/java/com/google/android/exoplayer2/upstream/DataSpec.java index 395df63529..75e23ae6f2 100644 --- a/library/common/src/main/java/com/google/android/exoplayer2/upstream/DataSpec.java +++ b/library/common/src/main/java/com/google/android/exoplayer2/upstream/DataSpec.java @@ -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}.