We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
toLowerCase
1 parent 995d6b0 commit 1d5dbcfCopy full SHA for 1d5dbcf
1 file changed
plugin/src/main/java/com/denizenscript/denizen/utilities/LegacyNamingHelper.java
@@ -17,10 +17,10 @@
17
public class LegacyNamingHelper<T extends Enum<T>> {
18
19
// TODO once 1.21 is the minimum supported version, replace with direct registry-based handling
20
- @SuppressWarnings({"unchecked", "rawtypes"})
+ @SuppressWarnings({"unchecked", "rawtypes", "DataFlowIssue"})
21
public static <T extends Keyed> T convert(Class<T> type, String string) {
22
if (NMSHandler.getVersion().isAtLeast(NMSVersion.v1_21)) {
23
- return Bukkit.getRegistry(type).get(Utilities.parseNamespacedKey(CoreUtilities.toLowerCase(string)));
+ return Bukkit.getRegistry(type).get(Utilities.parseNamespacedKey(string));
24
}
25
return (T) ElementTag.asEnum((Class<? extends Enum>) type, string);
26
0 commit comments