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
58e9e616
authored
Aug 12, 2014
by
Oliver Woodman
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Remove unnecessary SuppressWarning annotations.
parent
e0a29c84
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
library/src/main/java/com/google/android/exoplayer/MediaCodecTrackRenderer.java
library/src/main/java/com/google/android/exoplayer/TrackRenderer.java
library/src/main/java/com/google/android/exoplayer/text/TextTrackRenderer.java
library/src/main/java/com/google/android/exoplayer/MediaCodecTrackRenderer.java
View file @
58e9e616
...
@@ -187,7 +187,12 @@ public abstract class MediaCodecTrackRenderer extends TrackRenderer {
...
@@ -187,7 +187,12 @@ public abstract class MediaCodecTrackRenderer extends TrackRenderer {
return
TrackRenderer
.
STATE_IGNORE
;
return
TrackRenderer
.
STATE_IGNORE
;
}
}
@SuppressWarnings
(
"unused"
)
/**
* Determines whether a mime type is handled by the renderer.
*
* @param mimeType The mime type to test.
* @return True if the renderer can handle the mime type. False otherwise.
*/
protected
boolean
handlesMimeType
(
String
mimeType
)
{
protected
boolean
handlesMimeType
(
String
mimeType
)
{
return
true
;
return
true
;
// TODO: Uncomment once the TODO above is fixed.
// TODO: Uncomment once the TODO above is fixed.
...
@@ -628,7 +633,6 @@ public abstract class MediaCodecTrackRenderer extends TrackRenderer {
...
@@ -628,7 +633,6 @@ public abstract class MediaCodecTrackRenderer extends TrackRenderer {
* @param newFormat The new format.
* @param newFormat The new format.
* @return True if the existing instance can be reconfigured. False otherwise.
* @return True if the existing instance can be reconfigured. False otherwise.
*/
*/
@SuppressWarnings
(
"unused"
)
protected
boolean
canReconfigureCodec
(
MediaCodec
codec
,
boolean
codecIsAdaptive
,
protected
boolean
canReconfigureCodec
(
MediaCodec
codec
,
boolean
codecIsAdaptive
,
MediaFormat
oldFormat
,
MediaFormat
newFormat
)
{
MediaFormat
oldFormat
,
MediaFormat
newFormat
)
{
return
false
;
return
false
;
...
...
library/src/main/java/com/google/android/exoplayer/TrackRenderer.java
View file @
58e9e616
...
@@ -110,7 +110,6 @@ public abstract class TrackRenderer implements ExoPlayerComponent {
...
@@ -110,7 +110,6 @@ public abstract class TrackRenderer implements ExoPlayerComponent {
*
*
* @return The current state (one of the STATE_* constants), for convenience.
* @return The current state (one of the STATE_* constants), for convenience.
*/
*/
@SuppressWarnings
(
"unused"
)
/* package */
final
int
prepare
()
throws
ExoPlaybackException
{
/* package */
final
int
prepare
()
throws
ExoPlaybackException
{
Assertions
.
checkState
(
state
==
TrackRenderer
.
STATE_UNPREPARED
);
Assertions
.
checkState
(
state
==
TrackRenderer
.
STATE_UNPREPARED
);
state
=
doPrepare
();
state
=
doPrepare
();
...
...
library/src/main/java/com/google/android/exoplayer/text/TextTrackRenderer.java
View file @
58e9e616
...
@@ -280,7 +280,6 @@ public class TextTrackRenderer extends TrackRenderer implements Callback {
...
@@ -280,7 +280,6 @@ public class TextTrackRenderer extends TrackRenderer implements Callback {
}
}
}
}
@SuppressWarnings
(
"unchecked"
)
@Override
@Override
public
boolean
handleMessage
(
Message
msg
)
{
public
boolean
handleMessage
(
Message
msg
)
{
switch
(
msg
.
what
)
{
switch
(
msg
.
what
)
{
...
...
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