Intern block properties

This commit is contained in:
themode 2021-12-28 12:03:33 +01:00 committed by TheMode
parent 7b328d3d4c
commit 78f37de368

View File

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