-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[memory] intern ConfigurationElement.propertiesAndValue #536
[memory] intern ConfigurationElement.propertiesAndValue #536
Conversation
@@ -299,7 +299,7 @@ private String[] readPropertiesAndValue(DataInputStream inputStream) throws IOEx | |||
return RegistryObjectManager.EMPTY_STRING_ARRAY; | |||
String[] properties = new String[numberOfProperties]; | |||
for (int i = 0; i < numberOfProperties; i++) { | |||
properties[i] = readStringOrNull(inputStream); | |||
properties[i] = readStringOrNull(inputStream).intern(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The method name suggest it could be null, maybe better intern in the method itself?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for the hint - in which method?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for the hint - in which method?
readStringOrNull
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
f1d6c6e
to
dc03374
Compare
dc03374
to
98fd256
Compare
o.e.core.internal.registry.ConfigurationElement.propertiesAndValue is likely to contain duplicate Strings like "true"
98fd256
to
52bce90
Compare
o.e.core.internal.registry.ConfigurationElement.propertiesAndValue is likely to contain duplicate Strings like "true"