13
0
geforkt von Mirrors/Paper

Fix duplicate lowercasing in NamespacedKey

By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
Bukkit/Spigot 2019-05-20 19:47:08 +10:00
Ursprung 1158b5a586
Commit 3acdc1f1b9

Datei anzeigen

@ -72,7 +72,7 @@ public final class NamespacedKey {
Preconditions.checkArgument(key != null, "Key cannot be null");
this.namespace = plugin.getName().toLowerCase(Locale.ROOT);
this.key = key.toLowerCase().toLowerCase(Locale.ROOT);
this.key = key.toLowerCase(Locale.ROOT);
// Check validity after normalization
Preconditions.checkArgument(VALID_NAMESPACE.matcher(this.namespace).matches(), "Invalid namespace. Must be [a-z0-9._-]: %s", this.namespace);