Commit c974f74b by olly Committed by Oliver Woodman

Cleanup: Remove deprecated DataSpec.postBody

PiperOrigin-RevId: 255378274
parent 3c2afb16
......@@ -95,13 +95,11 @@ public final class DataSpec {
public final @HttpMethod int httpMethod;
/**
* The HTTP body, null otherwise. If the body is non-null, then httpBody.length will be non-zero.
* The HTTP request body, null otherwise. If the body is non-null, then httpBody.length will be
* non-zero.
*/
@Nullable public final byte[] httpBody;
/** @deprecated Use {@link #httpBody} instead. */
@Deprecated @Nullable public final byte[] postBody;
/**
* The absolute position of the data in the full stream.
*/
......@@ -251,7 +249,6 @@ public final class DataSpec {
this.uri = uri;
this.httpMethod = httpMethod;
this.httpBody = (httpBody != null && httpBody.length != 0) ? httpBody : null;
this.postBody = this.httpBody;
this.absoluteStreamPosition = absoluteStreamPosition;
this.position = position;
this.length = length;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment