From 9c3ed7f078b4c0e5377a79726cde8e4aa8a11e98 Mon Sep 17 00:00:00 2001 From: ChomeNS <95471003+ChomeNS@users.noreply.github.com> Date: Fri, 9 Jun 2023 20:57:10 +0700 Subject: [PATCH] just use AllArgsConstructor --- .../chipmunk/chayapak/chomens_bot/song/Instrument.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/main/java/land/chipmunk/chayapak/chomens_bot/song/Instrument.java b/src/main/java/land/chipmunk/chayapak/chomens_bot/song/Instrument.java index 55a993e..ad19d65 100644 --- a/src/main/java/land/chipmunk/chayapak/chomens_bot/song/Instrument.java +++ b/src/main/java/land/chipmunk/chayapak/chomens_bot/song/Instrument.java @@ -1,6 +1,9 @@ package land.chipmunk.chayapak.chomens_bot.song; +import lombok.AllArgsConstructor; + // Author: hhhzzzsss +@AllArgsConstructor public class Instrument { public static final Instrument HARP = new Instrument(0, "harp", 54); public static final Instrument BASEDRUM = new Instrument(1, "basedrum", 0); @@ -24,13 +27,6 @@ public class Instrument { public final int offset; public final String sound; - private Instrument (int id, String name, int offset, String sound) { - this.id = id; - this.name = name; - this.offset = offset; - this.sound = sound; - } - private Instrument (int id, String name, int offset) { this.id = id; this.name = name;