Remove unnecessary SuppressWarning annotations.
This commit is contained in:
parent
e0a29c841e
commit
58e9e61688
@ -187,7 +187,12 @@ public abstract class MediaCodecTrackRenderer extends TrackRenderer {
|
||||
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) {
|
||||
return true;
|
||||
// TODO: Uncomment once the TODO above is fixed.
|
||||
@ -628,7 +633,6 @@ public abstract class MediaCodecTrackRenderer extends TrackRenderer {
|
||||
* @param newFormat The new format.
|
||||
* @return True if the existing instance can be reconfigured. False otherwise.
|
||||
*/
|
||||
@SuppressWarnings("unused")
|
||||
protected boolean canReconfigureCodec(MediaCodec codec, boolean codecIsAdaptive,
|
||||
MediaFormat oldFormat, MediaFormat newFormat) {
|
||||
return false;
|
||||
|
@ -110,7 +110,6 @@ public abstract class TrackRenderer implements ExoPlayerComponent {
|
||||
*
|
||||
* @return The current state (one of the STATE_* constants), for convenience.
|
||||
*/
|
||||
@SuppressWarnings("unused")
|
||||
/* package */ final int prepare() throws ExoPlaybackException {
|
||||
Assertions.checkState(state == TrackRenderer.STATE_UNPREPARED);
|
||||
state = doPrepare();
|
||||
|
@ -280,7 +280,6 @@ public class TextTrackRenderer extends TrackRenderer implements Callback {
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public boolean handleMessage(Message msg) {
|
||||
switch (msg.what) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user