aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide/features/text
diff options
context:
space:
mode:
authorMy-Name-Is-Jeff <37018278+My-Name-Is-Jeff@users.noreply.github.com>2021-05-03 21:53:00 -0400
committerMy-Name-Is-Jeff <37018278+My-Name-Is-Jeff@users.noreply.github.com>2021-05-03 21:53:00 -0400
commit70785f7afa63a1fe682f6e9f3d03b72ecc24b803 (patch)
treea61891a6711887777c3f47e5f4e75486fdbb8119 /src/main/java/kr/syeyoung/dungeonsguide/features/text
parentcc03ece233023c57118e9acfeca8103b3bb587e1 (diff)
downloadSkyblock-Dungeons-Guide-70785f7afa63a1fe682f6e9f3d03b72ecc24b803.tar.gz
Skyblock-Dungeons-Guide-70785f7afa63a1fe682f6e9f3d03b72ecc24b803.tar.bz2
Skyblock-Dungeons-Guide-70785f7afa63a1fe682f6e9f3d03b72ecc24b803.zip
IntelliJ's Code Clean Up
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/features/text')
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/features/text/PanelTextParameterConfig.java12
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/features/text/TextHUDFeature.java2
2 files changed, 7 insertions, 7 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/features/text/PanelTextParameterConfig.java b/src/main/java/kr/syeyoung/dungeonsguide/features/text/PanelTextParameterConfig.java
index adab8bd0..6f3385d4 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/features/text/PanelTextParameterConfig.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/features/text/PanelTextParameterConfig.java
@@ -33,11 +33,11 @@ import java.util.List;
public class PanelTextParameterConfig extends MPanel {
- private StyledTextProvider feature;
+ private final StyledTextProvider feature;
- private MEditableAColor currentColor;
- private MEditableAColor backgroundColor;
- private MToggleButton shadow;
+ private final MEditableAColor currentColor;
+ private final MEditableAColor backgroundColor;
+ private final MToggleButton shadow;
@Override
public void onBoundsUpdate() {
@@ -48,7 +48,7 @@ public class PanelTextParameterConfig extends MPanel {
this.setBounds(new Rectangle(5,5,parentWidth-10, 120));
}
- private GuiConfig config;
+ private final GuiConfig config;
public PanelTextParameterConfig(final GuiConfig config, final StyledTextProvider feature) {
this.config = config;
this.feature = feature;
@@ -95,7 +95,7 @@ public class PanelTextParameterConfig extends MPanel {
}
- private Set<String> selected = new HashSet<String>();
+ private final Set<String> selected = new HashSet<String>();
@Override
public void render(int absMousex, int absMousey, int relMousex0, int relMousey0, float partialTicks, Rectangle scissor) {
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/features/text/TextHUDFeature.java b/src/main/java/kr/syeyoung/dungeonsguide/features/text/TextHUDFeature.java
index 7df67515..55ff99e4 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/features/text/TextHUDFeature.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/features/text/TextHUDFeature.java
@@ -63,7 +63,7 @@ public abstract class TextHUDFeature extends GuiFeature implements StyledTextPro
}
String things2 = things.toString().trim();
int lines = 1;
- for (char c : things2.toString().toCharArray()) {
+ for (char c : things2.toCharArray()) {
if (c == '\n') lines++;
}
return lines;