Intern block properties

This commit is contained in:
themode 2021-12-28 12:03:33 +01:00 committed by TheMode
parent 7b328d3d4c
commit 78f37de368
1 changed files with 2 additions and 2 deletions

View File

@ -80,8 +80,8 @@ public class BlockUtils {
if (equalIndex != -1) {
final String key = property.substring(0, equalIndex).trim();
final String value = property.substring(equalIndex + 1).trim();
entries[entryIndex++] = key;
entries[entryIndex++] = value;
entries[entryIndex++] = key.intern();
entries[entryIndex++] = value.intern();
}
start = end + 1;
}