Cleanup: Remove deprecated DataSpec.postBody
PiperOrigin-RevId: 255378274
This commit is contained in:
parent
3c2afb16e6
commit
c974f74b1f
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user