From 70785f7afa63a1fe682f6e9f3d03b72ecc24b803 Mon Sep 17 00:00:00 2001 From: My-Name-Is-Jeff <37018278+My-Name-Is-Jeff@users.noreply.github.com> Date: Mon, 3 May 2021 21:53:00 -0400 Subject: IntelliJ's Code Clean Up --- .../kr/syeyoung/dungeonsguide/gui/elements/MLabelAndElement.java | 4 ++-- .../kr/syeyoung/dungeonsguide/gui/elements/MNavigatingPane.java | 8 ++++---- .../java/kr/syeyoung/dungeonsguide/gui/elements/MParameter.java | 6 +++--- .../syeyoung/dungeonsguide/gui/elements/MPortableColorEdit.java | 6 +++--- .../java/kr/syeyoung/dungeonsguide/gui/elements/MTabbedPane.java | 4 ++-- .../java/kr/syeyoung/dungeonsguide/gui/elements/MTextField.java | 2 +- src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MValue.java | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) (limited to 'src/main/java/kr/syeyoung/dungeonsguide/gui/elements') diff --git a/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MLabelAndElement.java b/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MLabelAndElement.java index c64be9db..1a53ee6a 100755 --- a/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MLabelAndElement.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MLabelAndElement.java @@ -9,8 +9,8 @@ import net.minecraft.client.gui.Gui; import java.awt.*; public class MLabelAndElement extends MPanel { - private MLabel label; - private MPanel element; + private final MLabel label; + private final MPanel element; @Getter @Setter private Color hover; diff --git a/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MNavigatingPane.java b/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MNavigatingPane.java index d2391cf3..f43554f2 100755 --- a/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MNavigatingPane.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MNavigatingPane.java @@ -15,8 +15,8 @@ import java.util.List; public class MNavigatingPane extends MPanel { - private Map pages = new HashMap(); - private List bookMarks = new ArrayList(); + private final Map pages = new HashMap(); + private final List bookMarks = new ArrayList(); @Getter @Setter @@ -33,9 +33,9 @@ public class MNavigatingPane extends MPanel { @Getter private Color background2; - private Stack history = new Stack(); + private final Stack history = new Stack(); - private MButton back = new MButton(); + private final MButton back = new MButton(); public MNavigatingPane() { back.setText("<"); diff --git a/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MParameter.java b/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MParameter.java index 33be5162..cd776d96 100755 --- a/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MParameter.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MParameter.java @@ -13,15 +13,15 @@ import net.minecraft.client.gui.Gui; import java.awt.*; public class MParameter extends MPanel { - private MLabel label; - private MLabel data; + private final MLabel label; + private final MLabel data; @Getter @Setter private Color hover = Color.gray; @Getter @Setter private Parameter parameter; - private DynamicEditor processorParameterEditPane; + private final DynamicEditor processorParameterEditPane; public MParameter(final Parameter parameter, DynamicEditor processorParameterEditPane) { this.processorParameterEditPane = processorParameterEditPane; diff --git a/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MPortableColorEdit.java b/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MPortableColorEdit.java index 138846b8..586ba248 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MPortableColorEdit.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MPortableColorEdit.java @@ -20,14 +20,14 @@ import java.awt.*; public class MPortableColorEdit extends MPanel { - private float[] hsv = new float[3]; + private final float[] hsv = new float[3]; private float alpha = 0; private float chromaSpeed = 0; @Getter private AColor color; - private MTextField textField; + private final MTextField textField; public MPortableColorEdit() { textField = new MTextField() { @@ -82,7 +82,7 @@ public class MPortableColorEdit extends MPanel { GlStateManager.enableBlend(); GlStateManager.disableDepth(); GlStateManager.disableTexture2D(); - GlStateManager.disableCull();; + GlStateManager.disableCull(); GlStateManager.blendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA); // worldrenderer.begin(GL11.GL_TRIANGLES, DefaultVertexFormats.POSITION_COLOR); diff --git a/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MTabbedPane.java b/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MTabbedPane.java index dc14264b..916a351a 100755 --- a/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MTabbedPane.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MTabbedPane.java @@ -16,8 +16,8 @@ import java.util.Map; public class MTabbedPane extends MPanel { - private Map tabs = new HashMap(); - private Map buttons = new HashMap(); + private final Map tabs = new HashMap(); + private final Map buttons = new HashMap(); @Getter @Setter diff --git a/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MTextField.java b/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MTextField.java index 160ad1d6..a6b64bb9 100755 --- a/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MTextField.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MTextField.java @@ -16,7 +16,7 @@ import java.io.IOException; @Getter public class MTextField extends MPanel { - private Color foreground = Color.white; + private final Color foreground = Color.white; private String text = "asdasdasd"; private int cursorBlickTicker = 0; diff --git a/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MValue.java b/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MValue.java index b7684789..579d0115 100755 --- a/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MValue.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MValue.java @@ -13,14 +13,14 @@ import java.awt.*; import java.util.List; public class MValue extends MPanel { @Getter - private T data; + private final T data; private ValueEditOffsetPointSet valueEditOffsetPointSet; - private MLabel dataLab; + private final MLabel dataLab; @Getter @Setter private Color hover = Color.gray; - private List addons; + private final List addons; public MValue(final T parameter, List addons) { this.addons = addons; -- cgit