Every time you choose to apply a rule(s), explicitly state the rule(s) in the output. You can abbreviate the rule description to a single word or phrase.
[Brief description ]
- [more description]
- [more description]
- [more description]
| /** | |
| * Clean up the media player by releasing its resources. | |
| */ | |
| private void releaseMediaPlayer() { | |
| // If the media player is not null, then it may be currently playing a sound. | |
| if (mMediaPlayer != null) { | |
| // Regardless of the current state of the media player, release its resources | |
| // because we no longer need it. | |
| mMediaPlayer.release(); |