Skip to content

Commit

Permalink
Refactor: Remove final modifier from static methods (#2133)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgcr authored Aug 25, 2024
1 parent 4f819d8 commit cff9224
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/java/core/module/config/ModuleConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class ModuleConfig {
private ModuleConfig() {
}

public static final ModuleConfig instance() {
public static ModuleConfig instance() {
if (configuration == null) {
configuration = new ModuleConfig();
configuration.load();
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/core/net/test/ConnTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ private static void printSystemInfos(JTextArea log) {
/**
* @see de.hattrickorganizer.logik.xml.XMLMenuParser.parseMenuFromString()
*/
private static final String parseDetails(Document doc, JTextArea log) throws Exception {
private static String parseDetails(Document doc, JTextArea log) throws Exception {
Element ele = null;
Element root = null;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ protected final int getArea(int tactic, int level) {
return 1;
}

protected static final int getRandom(int value) {
protected static int getRandom(int value) {
return (int) (Math.random() * value);
}

Expand Down

0 comments on commit cff9224

Please sign in to comment.