mirror of
https://github.com/samsonjs/media.git
synced 2026-04-05 11:15:46 +00:00
Remove unnecessary @Nullable in exception message
PiperOrigin-RevId: 367204382
This commit is contained in:
parent
c455bad8f8
commit
2434d4e6d4
1 changed files with 4 additions and 4 deletions
|
|
@ -25,6 +25,7 @@ import androidx.annotation.Nullable;
|
|||
import com.google.android.exoplayer2.C.FormatSupport;
|
||||
import com.google.android.exoplayer2.source.MediaPeriodId;
|
||||
import com.google.android.exoplayer2.util.Assertions;
|
||||
import com.google.android.exoplayer2.util.Util;
|
||||
import java.io.IOException;
|
||||
import java.lang.annotation.Documented;
|
||||
import java.lang.annotation.Retention;
|
||||
|
|
@ -269,7 +270,7 @@ public final class ExoPlaybackException extends Exception implements Bundleable
|
|||
}
|
||||
|
||||
private ExoPlaybackException(
|
||||
@Nullable String message,
|
||||
String message,
|
||||
@Nullable Throwable cause,
|
||||
@Type int type,
|
||||
@Nullable String rendererName,
|
||||
|
|
@ -331,7 +332,7 @@ public final class ExoPlaybackException extends Exception implements Bundleable
|
|||
@CheckResult
|
||||
/* package */ ExoPlaybackException copyWithMediaPeriodId(@Nullable MediaPeriodId mediaPeriodId) {
|
||||
return new ExoPlaybackException(
|
||||
getMessage(),
|
||||
Util.castNonNull(getMessage()),
|
||||
cause,
|
||||
type,
|
||||
rendererName,
|
||||
|
|
@ -343,7 +344,6 @@ public final class ExoPlaybackException extends Exception implements Bundleable
|
|||
isRecoverable);
|
||||
}
|
||||
|
||||
@Nullable
|
||||
private static String deriveMessage(
|
||||
@Type int type,
|
||||
@Nullable String customMessage,
|
||||
|
|
@ -351,7 +351,7 @@ public final class ExoPlaybackException extends Exception implements Bundleable
|
|||
int rendererIndex,
|
||||
@Nullable Format rendererFormat,
|
||||
@FormatSupport int rendererFormatSupport) {
|
||||
@Nullable String message;
|
||||
String message;
|
||||
switch (type) {
|
||||
case TYPE_SOURCE:
|
||||
message = "Source error";
|
||||
|
|
|
|||
Loading…
Reference in a new issue