From 1c8bd015bd154c7753c3372f0c5a158d88546541 Mon Sep 17 00:00:00 2001 From: Sebastian Reddig <54644983+sgcr@users.noreply.github.com> Date: Sun, 25 Aug 2024 22:35:19 +0200 Subject: [PATCH] Refactor: Remove unnecessary modifiers (#2134) --- src/main/java/core/gui/IRefreshable.java | 2 +- .../java/core/gui/theme/HOBooleanName.java | 2 +- src/main/java/core/model/StaffType.java | 2 +- src/main/java/module/ifa/config/Config.java | 2 +- .../plausibility/Uncertainty.java | 2 +- .../specialEvents/SeasonFilterValue.java | 2 +- .../ui/layout/TableLayoutConstants.java | 22 +++++++++---------- 7 files changed, 17 insertions(+), 17 deletions(-) diff --git a/src/main/java/core/gui/IRefreshable.java b/src/main/java/core/gui/IRefreshable.java index 4ec12fa7b..cdc0a2b9f 100644 --- a/src/main/java/core/gui/IRefreshable.java +++ b/src/main/java/core/gui/IRefreshable.java @@ -11,5 +11,5 @@ public interface IRefreshable { /** * Called, if the data changed */ - public void refresh(); + void refresh(); } diff --git a/src/main/java/core/gui/theme/HOBooleanName.java b/src/main/java/core/gui/theme/HOBooleanName.java index 2571b124e..f209ecfcd 100644 --- a/src/main/java/core/gui/theme/HOBooleanName.java +++ b/src/main/java/core/gui/theme/HOBooleanName.java @@ -1,5 +1,5 @@ package core.gui.theme; public interface HOBooleanName { - public static String IMAGEPANEL_BG_PAINTED = "imagePanel.background.painted"; + String IMAGEPANEL_BG_PAINTED = "imagePanel.background.painted"; } diff --git a/src/main/java/core/model/StaffType.java b/src/main/java/core/model/StaffType.java index 215d43f62..fa2969db0 100644 --- a/src/main/java/core/model/StaffType.java +++ b/src/main/java/core/model/StaffType.java @@ -13,7 +13,7 @@ public enum StaffType { private final int id; - private StaffType(int id) { + StaffType(int id) { this.id = id; } diff --git a/src/main/java/module/ifa/config/Config.java b/src/main/java/module/ifa/config/Config.java index 84e9ede35..41b067f0b 100644 --- a/src/main/java/module/ifa/config/Config.java +++ b/src/main/java/module/ifa/config/Config.java @@ -22,7 +22,7 @@ public enum Config { private final String txt; - private Config(String text) { + Config(String text) { this.txt = text; } diff --git a/src/main/java/module/lineup/substitution/plausibility/Uncertainty.java b/src/main/java/module/lineup/substitution/plausibility/Uncertainty.java index 6980837eb..dea79e194 100644 --- a/src/main/java/module/lineup/substitution/plausibility/Uncertainty.java +++ b/src/main/java/module/lineup/substitution/plausibility/Uncertainty.java @@ -5,7 +5,7 @@ public enum Uncertainty implements Problem { private final String languageKey; - private Uncertainty(String languageKey) { + Uncertainty(String languageKey) { this.languageKey = languageKey; } diff --git a/src/main/java/module/specialEvents/SeasonFilterValue.java b/src/main/java/module/specialEvents/SeasonFilterValue.java index 6dccbf28d..ee974602f 100644 --- a/src/main/java/module/specialEvents/SeasonFilterValue.java +++ b/src/main/java/module/specialEvents/SeasonFilterValue.java @@ -6,7 +6,7 @@ public enum SeasonFilterValue { private final int id; - private SeasonFilterValue(int id) { + SeasonFilterValue(int id) { this.id = id; } diff --git a/src/main/java/module/transfer/ui/layout/TableLayoutConstants.java b/src/main/java/module/transfer/ui/layout/TableLayoutConstants.java index 5e62ca5fe..99e202005 100644 --- a/src/main/java/module/transfer/ui/layout/TableLayoutConstants.java +++ b/src/main/java/module/transfer/ui/layout/TableLayoutConstants.java @@ -43,22 +43,22 @@ */ public interface TableLayoutConstants { /** Indicates that the component is left justified in its cell */ - public static final int LEFT = 0; + int LEFT = 0; /** Indicates that the component is top justified in its cell */ - public static final int TOP = 0; + int TOP = 0; /** Indicates that the component is centered in its cell */ - public static final int CENTER = 1; + int CENTER = 1; /** Indicates that the component is full justified in its cell */ - public static final int FULL = 2; + int FULL = 2; /** Indicates that the component is bottom justified in its cell */ - public static final int BOTTOM = 3; + int BOTTOM = 3; /** Indicates that the component is right justified in its cell */ - public static final int RIGHT = 3; + int RIGHT = 3; /** * Indicates that the component is leading justified in its cell. Leading justification means @@ -66,7 +66,7 @@ public interface TableLayoutConstants { * their container is right-oriented. Trailing justification is opposite. see * java.awt.Component#getComponentOrientation */ - public static final int LEADING = 4; + int LEADING = 4; /** * Indicates that the component is trailing justified in its cell. Trailing justification means @@ -74,20 +74,20 @@ public interface TableLayoutConstants { * their container is right-oriented. Leading justification is opposite. see * java.awt.Component#getComponentOrientation */ - public static final int TRAILING = 5; + int TRAILING = 5; /** Indicates that the row/column should fill the available space */ - public static final double FILL = -1.0; + double FILL = -1.0; /** * Indicates that the row/column should be allocated just enough space to accomidate the * preferred size of all components contained completely within this row/column. */ - public static final double PREFERRED = -2.0; + double PREFERRED = -2.0; /** * Indicates that the row/column should be allocated just enough space to accomidate the * minimum size of all components contained completely within this row/column. */ - public static final double MINIMUM = -3.0; + double MINIMUM = -3.0; }