mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2026-11-12 18:57:28 +00:00
Don't intern strings in ContextSets (#797)
This commit is contained in:
1 file changed
+2
-4
@@ -126,8 +126,7 @@ abstract class AbstractContextSet implements ContextSet {
|
||||
if (stringIsEmpty(key)) {
|
||||
throw new IllegalArgumentException("key is (effectively) empty");
|
||||
}
|
||||
|
||||
return key.toLowerCase().intern();
|
||||
return key.toLowerCase();
|
||||
}
|
||||
|
||||
static String sanitizeValue(String value) {
|
||||
@@ -135,8 +134,7 @@ abstract class AbstractContextSet implements ContextSet {
|
||||
if (stringIsEmpty(value)) {
|
||||
throw new IllegalArgumentException("value is (effectively) empty");
|
||||
}
|
||||
|
||||
return value.intern();
|
||||
return value;
|
||||
}
|
||||
|
||||
private static boolean stringIsEmpty(String s) {
|
||||
|
||||
Reference in new issue
Block a user