Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
2434d4e6
authored
Apr 07, 2021
by
jaewan
Committed by
marcbaechinger
Apr 09, 2021
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Remove unnecessary @Nullable in exception message
PiperOrigin-RevId: 367204382
parent
c455bad8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
library/common/src/main/java/com/google/android/exoplayer2/ExoPlaybackException.java
library/common/src/main/java/com/google/android/exoplayer2/ExoPlaybackException.java
View file @
2434d4e6
...
@@ -25,6 +25,7 @@ import androidx.annotation.Nullable;
...
@@ -25,6 +25,7 @@ import androidx.annotation.Nullable;
import
com.google.android.exoplayer2.C.FormatSupport
;
import
com.google.android.exoplayer2.C.FormatSupport
;
import
com.google.android.exoplayer2.source.MediaPeriodId
;
import
com.google.android.exoplayer2.source.MediaPeriodId
;
import
com.google.android.exoplayer2.util.Assertions
;
import
com.google.android.exoplayer2.util.Assertions
;
import
com.google.android.exoplayer2.util.Util
;
import
java.io.IOException
;
import
java.io.IOException
;
import
java.lang.annotation.Documented
;
import
java.lang.annotation.Documented
;
import
java.lang.annotation.Retention
;
import
java.lang.annotation.Retention
;
...
@@ -269,7 +270,7 @@ public final class ExoPlaybackException extends Exception implements Bundleable
...
@@ -269,7 +270,7 @@ public final class ExoPlaybackException extends Exception implements Bundleable
}
}
private
ExoPlaybackException
(
private
ExoPlaybackException
(
@Nullable
String
message
,
String
message
,
@Nullable
Throwable
cause
,
@Nullable
Throwable
cause
,
@Type
int
type
,
@Type
int
type
,
@Nullable
String
rendererName
,
@Nullable
String
rendererName
,
...
@@ -331,7 +332,7 @@ public final class ExoPlaybackException extends Exception implements Bundleable
...
@@ -331,7 +332,7 @@ public final class ExoPlaybackException extends Exception implements Bundleable
@CheckResult
@CheckResult
/* package */
ExoPlaybackException
copyWithMediaPeriodId
(
@Nullable
MediaPeriodId
mediaPeriodId
)
{
/* package */
ExoPlaybackException
copyWithMediaPeriodId
(
@Nullable
MediaPeriodId
mediaPeriodId
)
{
return
new
ExoPlaybackException
(
return
new
ExoPlaybackException
(
getMessage
(
),
Util
.
castNonNull
(
getMessage
()
),
cause
,
cause
,
type
,
type
,
rendererName
,
rendererName
,
...
@@ -343,7 +344,6 @@ public final class ExoPlaybackException extends Exception implements Bundleable
...
@@ -343,7 +344,6 @@ public final class ExoPlaybackException extends Exception implements Bundleable
isRecoverable
);
isRecoverable
);
}
}
@Nullable
private
static
String
deriveMessage
(
private
static
String
deriveMessage
(
@Type
int
type
,
@Type
int
type
,
@Nullable
String
customMessage
,
@Nullable
String
customMessage
,
...
@@ -351,7 +351,7 @@ public final class ExoPlaybackException extends Exception implements Bundleable
...
@@ -351,7 +351,7 @@ public final class ExoPlaybackException extends Exception implements Bundleable
int
rendererIndex
,
int
rendererIndex
,
@Nullable
Format
rendererFormat
,
@Nullable
Format
rendererFormat
,
@FormatSupport
int
rendererFormatSupport
)
{
@FormatSupport
int
rendererFormatSupport
)
{
@Nullable
String
message
;
String
message
;
switch
(
type
)
{
switch
(
type
)
{
case
TYPE_SOURCE:
case
TYPE_SOURCE:
message
=
"Source error"
;
message
=
"Source error"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment