From 0fa976c8a486836be1991950dc544f8d8dd5e31f Mon Sep 17 00:00:00 2001 From: Sebastian Reddig Date: Sat, 31 Aug 2024 14:40:23 +0200 Subject: [PATCH] Review Finding 6: Move LabelWithSignedNumber to package 'core.gui' --- .../{tool/arenasizer => core/gui}/LabelWithSignedNumber.java | 4 ++-- src/main/java/tool/arenasizer/ArenaInfoPanel.java | 2 +- src/main/java/tool/arenasizer/CapacityPanel.java | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) rename src/main/java/{tool/arenasizer => core/gui}/LabelWithSignedNumber.java (97%) diff --git a/src/main/java/tool/arenasizer/LabelWithSignedNumber.java b/src/main/java/core/gui/LabelWithSignedNumber.java similarity index 97% rename from src/main/java/tool/arenasizer/LabelWithSignedNumber.java rename to src/main/java/core/gui/LabelWithSignedNumber.java index 86cff32f9..624a672be 100644 --- a/src/main/java/tool/arenasizer/LabelWithSignedNumber.java +++ b/src/main/java/core/gui/LabelWithSignedNumber.java @@ -1,4 +1,4 @@ -package tool.arenasizer; +package core.gui; import core.gui.theme.HOColorName; import core.gui.theme.ThemeManager; @@ -15,7 +15,7 @@ import static org.apache.commons.lang3.StringUtils.EMPTY; import static org.apache.commons.lang3.compare.ComparableUtils.is; -class LabelWithSignedNumber extends JLabel { +public class LabelWithSignedNumber extends JLabel { private static final String PLUS_SIGN = "+"; diff --git a/src/main/java/tool/arenasizer/ArenaInfoPanel.java b/src/main/java/tool/arenasizer/ArenaInfoPanel.java index 9393d182a..5271874d7 100644 --- a/src/main/java/tool/arenasizer/ArenaInfoPanel.java +++ b/src/main/java/tool/arenasizer/ArenaInfoPanel.java @@ -11,8 +11,8 @@ import java.math.RoundingMode; import java.util.Optional; +import static core.gui.LabelWithSignedNumber.percentString; import static org.apache.commons.lang3.StringUtils.EMPTY; -import static tool.arenasizer.LabelWithSignedNumber.percentString; public class ArenaInfoPanel extends JPanel { diff --git a/src/main/java/tool/arenasizer/CapacityPanel.java b/src/main/java/tool/arenasizer/CapacityPanel.java index c9431ee6b..60a0b9188 100644 --- a/src/main/java/tool/arenasizer/CapacityPanel.java +++ b/src/main/java/tool/arenasizer/CapacityPanel.java @@ -1,5 +1,6 @@ package tool.arenasizer; +import core.gui.LabelWithSignedNumber; import core.model.HOVerwaltung; import javax.imageio.ImageIO;