Added lots of 'final' modifiers to class fields where applicable.
Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
This commit is contained in:
@@ -40,10 +40,10 @@ public enum HitSound implements SoundController.SoundComponent {
|
||||
// TAIKO ("taiko", 4);
|
||||
|
||||
/** The sample set name. */
|
||||
private String name;
|
||||
private final String name;
|
||||
|
||||
/** The sample set index. */
|
||||
private int index;
|
||||
private final int index;
|
||||
|
||||
/** Total number of sample sets. */
|
||||
public static final int SIZE = values().length;
|
||||
@@ -77,7 +77,7 @@ public enum HitSound implements SoundController.SoundComponent {
|
||||
private static SampleSet currentDefaultSampleSet = SampleSet.NORMAL;
|
||||
|
||||
/** The file name. */
|
||||
private String filename;
|
||||
private final String filename;
|
||||
|
||||
/** The Clip associated with the hit sound. */
|
||||
private HashMap<SampleSet, MultiClip> clips;
|
||||
|
||||
@@ -49,7 +49,7 @@ public class MultiClip {
|
||||
private byte[] audioData;
|
||||
|
||||
/** The name given to this clip. */
|
||||
private String name;
|
||||
private final String name;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
|
||||
@@ -42,7 +42,7 @@ public enum SoundEffect implements SoundController.SoundComponent {
|
||||
SPINNERSPIN ("spinnerspin");
|
||||
|
||||
/** The file name. */
|
||||
private String filename;
|
||||
private final String filename;
|
||||
|
||||
/** The Clip associated with the sound effect. */
|
||||
private MultiClip clip;
|
||||
|
||||
Reference in New Issue
Block a user