Remove unnecessary SuppressWarning annotations.

This commit is contained in:
Oliver Woodman 2014-08-12 14:13:43 +01:00
parent e0a29c841e
commit 58e9e61688
3 changed files with 6 additions and 4 deletions

View File

@ -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 {
* @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;

View File

@ -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();

View File

@ -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) {