diff options
author | Taco <SkytkRSfan3895@gmail.com> | 2024-04-05 20:28:36 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-05 19:28:36 +0200 |
commit | b6a4049ff4a792cbed826320064ccca72fc3e6e5 (patch) | |
tree | 83b8b52a1954c2b1374ee5b691c7bd0e00009c71 /playback/base | |
parent | 92ab575b150ab49ca85e0ac994558142e49c9e68 (diff) | |
download | AntennaPod-b6a4049ff4a792cbed826320064ccca72fc3e6e5.zip |
Spotbugs cleanup (#6968)
Remove unused SpotBugs rules.
Fix URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD, ICAST_INTEGER_MULTIPLY_CAST_TO_LONG, NP_METHOD_PARAMETER_TIGHTENS_ANNOTATION, OBL_UNSATISFIED_OBLIGATION_EXCEPTION_EDGE
Diffstat (limited to 'playback/base')
-rw-r--r-- | playback/base/src/main/java/de/danoeh/antennapod/playback/base/PlaybackServiceMediaPlayer.java | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/playback/base/src/main/java/de/danoeh/antennapod/playback/base/PlaybackServiceMediaPlayer.java b/playback/base/src/main/java/de/danoeh/antennapod/playback/base/PlaybackServiceMediaPlayer.java index 39ee99884..250ef0575 100644 --- a/playback/base/src/main/java/de/danoeh/antennapod/playback/base/PlaybackServiceMediaPlayer.java +++ b/playback/base/src/main/java/de/danoeh/antennapod/playback/base/PlaybackServiceMediaPlayer.java @@ -360,14 +360,30 @@ public abstract class PlaybackServiceMediaPlayer { * Holds information about a PSMP object. */ public static class PSMPInfo { - public final PlayerStatus oldPlayerStatus; - public PlayerStatus playerStatus; - public Playable playable; + private final PlayerStatus oldPlayerStatus; + private final PlayerStatus playerStatus; + private Playable playable; public PSMPInfo(PlayerStatus oldPlayerStatus, PlayerStatus playerStatus, Playable playable) { this.oldPlayerStatus = oldPlayerStatus; this.playerStatus = playerStatus; this.playable = playable; } + + public PlayerStatus getOldPlayerStatus() { + return oldPlayerStatus; + } + + public PlayerStatus getPlayerStatus() { + return playerStatus; + } + + public Playable getPlayable() { + return playable; + } + + public void setPlayable(final Playable newPlayable) { + playable = newPlayable; + } } } |