mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Remove two deprecated InvalidResponseCodeException constructors
Use a non-deprecated constructor that accepts additional fields(`cause`, `responseBody`) to enhance error logging.
#minor-release
PiperOrigin-RevId: 532190896
(cherry picked from commit b120ef65ed)
This commit is contained in:
parent
a8c56f2c60
commit
fc6429b2d4
2 changed files with 3 additions and 38 deletions
|
|
@ -22,6 +22,9 @@
|
||||||
`DefaultBandwidthMeter.Builder` instead.
|
`DefaultBandwidthMeter.Builder` instead.
|
||||||
* Remove `DefaultDrmSessionManager` constructors, use
|
* Remove `DefaultDrmSessionManager` constructors, use
|
||||||
`DefaultDrmSessionManager.Builder` instead.
|
`DefaultDrmSessionManager.Builder` instead.
|
||||||
|
* Remove two deprecated `HttpDataSource.InvalidResponseCodeException`
|
||||||
|
constructors, use a non-deprecated constructor that accepts additional
|
||||||
|
fields(`cause`, `responseBody`) to enhance error logging.
|
||||||
|
|
||||||
### 1.1.0-alpha01 (2023-05-10)
|
### 1.1.0-alpha01 (2023-05-10)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,6 @@ import androidx.annotation.IntDef;
|
||||||
import androidx.annotation.Nullable;
|
import androidx.annotation.Nullable;
|
||||||
import androidx.media3.common.PlaybackException;
|
import androidx.media3.common.PlaybackException;
|
||||||
import androidx.media3.common.util.UnstableApi;
|
import androidx.media3.common.util.UnstableApi;
|
||||||
import androidx.media3.common.util.Util;
|
|
||||||
import com.google.common.base.Ascii;
|
import com.google.common.base.Ascii;
|
||||||
import com.google.common.base.Predicate;
|
import com.google.common.base.Predicate;
|
||||||
import com.google.errorprone.annotations.CanIgnoreReturnValue;
|
import com.google.errorprone.annotations.CanIgnoreReturnValue;
|
||||||
|
|
@ -425,43 +424,6 @@ public interface HttpDataSource extends DataSource {
|
||||||
/** The response body. */
|
/** The response body. */
|
||||||
public final byte[] responseBody;
|
public final byte[] responseBody;
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated Use {@link #InvalidResponseCodeException(int, String, IOException, Map, DataSpec,
|
|
||||||
* byte[])}.
|
|
||||||
*/
|
|
||||||
@UnstableApi
|
|
||||||
@Deprecated
|
|
||||||
public InvalidResponseCodeException(
|
|
||||||
int responseCode, Map<String, List<String>> headerFields, DataSpec dataSpec) {
|
|
||||||
this(
|
|
||||||
responseCode,
|
|
||||||
/* responseMessage= */ null,
|
|
||||||
/* cause= */ null,
|
|
||||||
headerFields,
|
|
||||||
dataSpec,
|
|
||||||
/* responseBody= */ Util.EMPTY_BYTE_ARRAY);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated Use {@link #InvalidResponseCodeException(int, String, IOException, Map, DataSpec,
|
|
||||||
* byte[])}.
|
|
||||||
*/
|
|
||||||
@UnstableApi
|
|
||||||
@Deprecated
|
|
||||||
public InvalidResponseCodeException(
|
|
||||||
int responseCode,
|
|
||||||
@Nullable String responseMessage,
|
|
||||||
Map<String, List<String>> headerFields,
|
|
||||||
DataSpec dataSpec) {
|
|
||||||
this(
|
|
||||||
responseCode,
|
|
||||||
responseMessage,
|
|
||||||
/* cause= */ null,
|
|
||||||
headerFields,
|
|
||||||
dataSpec,
|
|
||||||
/* responseBody= */ Util.EMPTY_BYTE_ARRAY);
|
|
||||||
}
|
|
||||||
|
|
||||||
@UnstableApi
|
@UnstableApi
|
||||||
public InvalidResponseCodeException(
|
public InvalidResponseCodeException(
|
||||||
int responseCode,
|
int responseCode,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue