Skip to content

Commit

Permalink
refactor: removing unnecessary semicolons (#2110)
Browse files Browse the repository at this point in the history
Co-authored-by: Sebastian Reddig <[email protected]>
  • Loading branch information
sgcr and sgcr authored Aug 16, 2024
1 parent bac6e6b commit 3e45361
Show file tree
Hide file tree
Showing 13 changed files with 15 additions and 18 deletions.
4 changes: 2 additions & 2 deletions src/main/java/core/constants/TeamSpirit.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ public final class TeamSpirit {
new CBItem(HOVerwaltung.instance().getLanguageString("ls.team.teamspirit.paradiseonearth"), PARADISE_ON_EARTH) };

private TeamSpirit() {
};
}


public static String toString(int teamSpirit){
public static String toString(int teamSpirit){
if(teamSpirit >= LIKE_THE_COLD_WAR && teamSpirit <= PARADISE_ON_EARTH)
return ITEMS[teamSpirit].getText();
else
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/core/constants/TrainingType.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public final class TrainingType {
new CBItem(Helper.getTranslation("ls.team.trainingtype.wingattacks"), WING_ATTACKS)
};

private TrainingType(){};
private TrainingType(){}

public static String toString(int trainingType){
if(trainingType >= SET_PIECES && trainingType <= WING_ATTACKS)
Expand Down
2 changes: 0 additions & 2 deletions src/main/java/core/file/ExampleFileFilter.java
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,6 @@ public final String getExtension(File f) {
return filename.substring(i + 1).toLowerCase(java.util.Locale.ENGLISH);
}

;
}

return null;
Expand Down Expand Up @@ -240,7 +239,6 @@ public final boolean accept(File f) {
return true;
}

;
}

return false;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/core/file/xml/XMLAvatarsParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public static List<PlayerAvatar> parseAvatarsFromString(String str) {

private static List<PlayerAvatar> parseDetails(Document doc) {

List<PlayerAvatar> playerAvatars = new ArrayList<>();;
List<PlayerAvatar> playerAvatars = new ArrayList<>();

if (doc == null) {
return playerAvatars;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/core/file/xml/XMLCHPPPreParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public static String getError(String xmlIn) {
String sReturnError = "";
final HOVerwaltung hov = HOVerwaltung.instance();
if(xmlIn.length() > 0 ) {
Document doc = XMLManager.parseString(xmlIn);;
Document doc = XMLManager.parseString(xmlIn);
if (doc != null) {
Element ele = null;
Element root = doc.getDocumentElement();
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/core/gui/LookAndFeelDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ private static LinkedHashMap<String, Object> getLookAndFeelOverview() {
*
* @return A sorted collection of all Look and Feel keys.
*/
private static Collection<String> getLookAndFeelKeys() { ;
private static Collection<String> getLookAndFeelKeys() {
UIDefaults defaults = UIManager.getLookAndFeelDefaults();
return defaults.keySet().stream().map(Object::toString).sorted().collect(Collectors.toList());
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/core/model/match/IMatchType.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public interface IMatchType {

default Icon getIcon(){
return ThemeManager.getIcon(HOIconName.MATCHICONS[this.getIconArrayIndex()]) ;
};
}

String getName();
default boolean isCompetitive() {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/core/util/OSUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
public final class OSUtils {
public final static String OS_NAME = System.getProperty("os.name").toLowerCase();
public enum OS {WINDOWS, LINUX, MAC};
public enum OS {WINDOWS, LINUX, MAC}
private static OS os = determineOS();

public static OS getOS() {return os;}
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/module/ifa/gif/GIFEncoder.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ public GIFEncoder(Image image) throws AWTException {
throw new AWTException("Grabber returned false: " +
grabber.status());
}
catch (InterruptedException e) { ; }
catch (InterruptedException e) {
}

byte r[][] = new byte[width_][height_];
byte g[][] = new byte[width_][height_];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ public class PositionSelectionEvent {
private Change change;

public enum Change {
SELECTED, DESELECTED;
}
SELECTED, DESELECTED
}

public PositionSelectionEvent(Integer position, Change change) {
this.position = position;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ private void jbInit() {
+ " "
+ HOVerwaltung.instance().getLanguageString("Verein"),
JOptionPane.PLAIN_MESSAGE);
;
});

itemAdd.addActionListener(arg0 -> {
Expand All @@ -101,7 +100,6 @@ private void jbInit() {
+ " "
+ HOVerwaltung.instance().getLanguageString("Verein"),
JOptionPane.PLAIN_MESSAGE);
;
});
}
}
4 changes: 2 additions & 2 deletions src/main/java/module/training/ui/model/ModelChange.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ public enum ModelChange {
ACTIVE_PLAYER,
NUMBER_OF_CO_TRAINERS,
TRAINER_LEVEL,
FUTURE_TRAINING;
FUTURE_TRAINING

}
2 changes: 1 addition & 1 deletion src/main/java/tool/arenasizer/ControlPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ int[] getModifiedSupporter(){

@Override
public void actionPerformed(java.awt.event.ActionEvent actionEvent) {
BigDecimal groesse = BigDecimal.ZERO;;
BigDecimal groesse = BigDecimal.ZERO;

try {
groesse = new BigDecimal(Integer.parseInt(m_jtfGesamtgroesse.getText()));
Expand Down

0 comments on commit 3e45361

Please sign in to comment.