Skip to content

Commit 5d75c71

Browse files
committed
Fixed code style
1 parent a6ca062 commit 5d75c71

6 files changed

Lines changed: 10 additions & 10 deletions

File tree

src/main/java/net/raphimc/noteblocklib/format/SongFormat.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public enum SongFormat {
6868
}
6969

7070
public static SongFormat getByExtension(final String extension) {
71-
for (final SongFormat format : values()) {
71+
for (SongFormat format : values()) {
7272
if (format.extensions.contains(extension.toLowerCase(Locale.ROOT))) {
7373
return format;
7474
}
@@ -78,7 +78,7 @@ public static SongFormat getByExtension(final String extension) {
7878
}
7979

8080
public static SongFormat getByName(final String name) {
81-
for (final SongFormat format : values()) {
81+
for (SongFormat format : values()) {
8282
if (format.name().equalsIgnoreCase(name)) {
8383
return format;
8484
}

src/main/java/net/raphimc/noteblocklib/format/mcsp2/model/McSp2Layer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public McSp2Layer copy() {
3535
final McSp2Layer copyLayer = new McSp2Layer();
3636
final Map<Integer, McSp2Note> notes = this.getNotes();
3737
final Map<Integer, McSp2Note> copyNotes = copyLayer.getNotes();
38-
for (final Map.Entry<Integer, McSp2Note> entry : notes.entrySet()) {
38+
for (Map.Entry<Integer, McSp2Note> entry : notes.entrySet()) {
3939
copyNotes.put(entry.getKey(), entry.getValue().copy());
4040
}
4141
return copyLayer;

src/main/java/net/raphimc/noteblocklib/format/mcsp2/model/McSp2Song.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ public McSp2Song copy() {
175175
copySong.setNoteBlocksRemoved(this.getNoteBlocksRemoved());
176176
final Map<Integer, McSp2Layer> layers = this.getLayers();
177177
final Map<Integer, McSp2Layer> copyLayers = copySong.getLayers();
178-
for (final Map.Entry<Integer, McSp2Layer> entry : layers.entrySet()) {
178+
for (Map.Entry<Integer, McSp2Layer> entry : layers.entrySet()) {
179179
copyLayers.put(entry.getKey(), entry.getValue().copy());
180180
}
181181
return copySong;

src/main/java/net/raphimc/noteblocklib/format/minecraft/MinecraftInstrument.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public enum MinecraftInstrument implements Instrument {
5353
}
5454

5555
public static MinecraftInstrument fromMcId(final int mcId) {
56-
for (final MinecraftInstrument instrument : MinecraftInstrument.values()) {
56+
for (MinecraftInstrument instrument : MinecraftInstrument.values()) {
5757
if (instrument.mcId == mcId) {
5858
return instrument;
5959
}
@@ -62,7 +62,7 @@ public static MinecraftInstrument fromMcId(final int mcId) {
6262
}
6363

6464
public static MinecraftInstrument fromNbsId(final int nbsId) {
65-
for (final MinecraftInstrument instrument : MinecraftInstrument.values()) {
65+
for (MinecraftInstrument instrument : MinecraftInstrument.values()) {
6666
if (instrument.nbsId == nbsId) {
6767
return instrument;
6868
}
@@ -71,7 +71,7 @@ public static MinecraftInstrument fromNbsId(final int nbsId) {
7171
}
7272

7373
public static MinecraftInstrument fromMcSoundName(final String mcSoundName) {
74-
for (final MinecraftInstrument instrument : MinecraftInstrument.values()) {
74+
for (MinecraftInstrument instrument : MinecraftInstrument.values()) {
7575
if (instrument.mcSoundName.equals(mcSoundName)) {
7676
return instrument;
7777
}

src/main/java/net/raphimc/noteblocklib/format/nbs/model/NbsLayer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public NbsLayer copy() {
162162
copyLayer.setStatus(this.getStatus());
163163
final Map<Integer, NbsNote> notes = this.getNotes();
164164
final Map<Integer, NbsNote> copyNotes = copyLayer.getNotes();
165-
for (final Map.Entry<Integer, NbsNote> entry : notes.entrySet()) {
165+
for (Map.Entry<Integer, NbsNote> entry : notes.entrySet()) {
166166
copyNotes.put(entry.getKey(), entry.getValue().copy());
167167
}
168168
return copyLayer;

src/main/java/net/raphimc/noteblocklib/format/nbs/model/NbsSong.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -505,12 +505,12 @@ public NbsSong copy() {
505505
copySong.setLoopStartTick(this.getLoopStartTick());
506506
final Map<Integer, NbsLayer> layers = this.getLayers();
507507
final Map<Integer, NbsLayer> copyLayers = copySong.getLayers();
508-
for (final Map.Entry<Integer, NbsLayer> entry : layers.entrySet()) {
508+
for (Map.Entry<Integer, NbsLayer> entry : layers.entrySet()) {
509509
copyLayers.put(entry.getKey(), entry.getValue().copy());
510510
}
511511
final List<NbsCustomInstrument> customInstruments = this.getCustomInstruments();
512512
final List<NbsCustomInstrument> copyCustomInstruments = copySong.getCustomInstruments();
513-
for (final NbsCustomInstrument customInstrument : customInstruments) {
513+
for (NbsCustomInstrument customInstrument : customInstruments) {
514514
copyCustomInstruments.add(customInstrument.copy());
515515
}
516516
return copySong;

0 commit comments

Comments
 (0)