diff options
author | md_5 <git@md-5.net> | 2018-07-12 11:18:19 +1000 |
---|---|---|
committer | md_5 <git@md-5.net> | 2018-07-12 11:18:19 +1000 |
commit | bdd0eda71f87cb8ca3b1842bd9bbd43bba5a08bd (patch) | |
tree | 1eea84bbd7030f9604786ad1132ef58064102bf9 /src/main/java/org | |
parent | 9cb65d72a3a46b5f9886d03777e7202e79b62034 (diff) | |
download | bukkit-bdd0eda71f87cb8ca3b1842bd9bbd43bba5a08bd.tar bukkit-bdd0eda71f87cb8ca3b1842bd9bbd43bba5a08bd.tar.gz bukkit-bdd0eda71f87cb8ca3b1842bd9bbd43bba5a08bd.tar.lz bukkit-bdd0eda71f87cb8ca3b1842bd9bbd43bba5a08bd.tar.xz bukkit-bdd0eda71f87cb8ca3b1842bd9bbd43bba5a08bd.zip |
Fix missing this causing unnormalized key to be validated
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/bukkit/NamespacedKey.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/bukkit/NamespacedKey.java b/src/main/java/org/bukkit/NamespacedKey.java index ea8738ad..1ed8f7e4 100644 --- a/src/main/java/org/bukkit/NamespacedKey.java +++ b/src/main/java/org/bukkit/NamespacedKey.java @@ -68,8 +68,8 @@ public final class NamespacedKey { this.key = key.toLowerCase().toLowerCase(Locale.ROOT); // Check validity after normalization - Preconditions.checkArgument(VALID_NAMESPACE.matcher(namespace).matches(), "namespace"); - Preconditions.checkArgument(VALID_KEY.matcher(key).matches(), "key"); + Preconditions.checkArgument(VALID_NAMESPACE.matcher(this.namespace).matches(), "namespace"); + Preconditions.checkArgument(VALID_KEY.matcher(this.key).matches(), "key"); String string = toString(); Preconditions.checkArgument(string.length() < 256, "NamespacedKey must be less than 256 characters (%s)", string); |