Skip to content

Commit

Permalink
Refactor: Remove unnecessary modifiers (ho-dev#2134)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgcr authored Aug 25, 2024
1 parent cff9224 commit 1c8bd01
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion src/main/java/core/gui/IRefreshable.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ public interface IRefreshable {
/**
* Called, if the data changed
*/
public void refresh();
void refresh();
}
2 changes: 1 addition & 1 deletion src/main/java/core/gui/theme/HOBooleanName.java
Original file line number Diff line number Diff line change
@@ -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";
}
2 changes: 1 addition & 1 deletion src/main/java/core/model/StaffType.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public enum StaffType {

private final int id;

private StaffType(int id) {
StaffType(int id) {
this.id = id;
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/module/ifa/config/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public enum Config {

private final String txt;

private Config(String text) {
Config(String text) {
this.txt = text;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ public enum Uncertainty implements Problem {

private final String languageKey;

private Uncertainty(String languageKey) {
Uncertainty(String languageKey) {
this.languageKey = languageKey;
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/module/specialEvents/SeasonFilterValue.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ public enum SeasonFilterValue {

private final int id;

private SeasonFilterValue(int id) {
SeasonFilterValue(int id) {
this.id = id;
}

Expand Down
22 changes: 11 additions & 11 deletions src/main/java/module/transfer/ui/layout/TableLayoutConstants.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,51 +43,51 @@
*/
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
* components are left justified if their container is left-oriented and right justified if
* 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
* components are right justified if their container is left-oriented and left justified if
* 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;
}

0 comments on commit 1c8bd01

Please sign in to comment.