Skip to content

Commit

Permalink
Fix EnumLocalization.java
Browse files Browse the repository at this point in the history
Since the Locale.ENGLISH value is not given to the String.toUppercase() method, the computer system changes the enum value in Turkish language such as Visitor to VISITOR instead of VISITOR, and an error occurs in the plugin.
  • Loading branch information
mehmet-27 authored Jul 10, 2024
1 parent 46637d8 commit 7b51b00
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ public void reload(ConfigurationSection section) {
}

protected T parseEnum(String input) {
return Enum.valueOf(getType(), input.toUpperCase());
return Enum.valueOf(getType(), input.toUpperCase(Locale.ENGLISH));
}
}

0 comments on commit 7b51b00

Please sign in to comment.