Added lots of 'final' modifiers to class fields where applicable.
Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
This commit is contained in:
@@ -25,10 +25,10 @@ package itdelatrisu.opsu.replay;
|
||||
*/
|
||||
public class LifeFrame {
|
||||
/** Time. */
|
||||
private int time;
|
||||
private final int time;
|
||||
|
||||
/** Percentage. */
|
||||
private float percentage;
|
||||
private final float percentage;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
|
||||
@@ -35,14 +35,14 @@ public enum PlaybackSpeed {
|
||||
HALF (GameImage.REPLAY_PLAYBACK_HALF, 0.5f);
|
||||
|
||||
/** The button image. */
|
||||
private GameImage gameImage;
|
||||
private final GameImage gameImage;
|
||||
|
||||
/** The playback speed modifier. */
|
||||
private final float modifier;
|
||||
|
||||
/** The button. */
|
||||
private MenuButton button;
|
||||
|
||||
/** The playback speed modifier. */
|
||||
private float modifier;
|
||||
|
||||
/** Enum values. */
|
||||
private static PlaybackSpeed[] values = PlaybackSpeed.values();
|
||||
|
||||
|
||||
@@ -38,13 +38,13 @@ public class ReplayFrame {
|
||||
private int timeDiff;
|
||||
|
||||
/** Time, in milliseconds. */
|
||||
private int time;
|
||||
private final int time;
|
||||
|
||||
/** Cursor coordinates (in OsuPixels). */
|
||||
private float x, y;
|
||||
private final float x, y;
|
||||
|
||||
/** Keys pressed (bitmask). */
|
||||
private int keys;
|
||||
private final int keys;
|
||||
|
||||
/**
|
||||
* Returns the start frame.
|
||||
|
||||
Reference in New Issue
Block a user