summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2018-07-12 11:18:19 +1000
committermd_5 <git@md-5.net>2018-07-12 11:18:19 +1000
commitbdd0eda71f87cb8ca3b1842bd9bbd43bba5a08bd (patch)
tree1eea84bbd7030f9604786ad1132ef58064102bf9
parent9cb65d72a3a46b5f9886d03777e7202e79b62034 (diff)
downloadbukkit-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
-rw-r--r--src/main/java/org/bukkit/NamespacedKey.java4
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);