-
Bug
-
Resolution: Unresolved
-
P5
-
8, 9
The implementation of MultiUIDefaults.toString() has the following code:
while (keys.hasMoreElements()) {
Object key = keys.nextElement();
sb.append(key + "=" + get(key) + ", ");
}
The result of string concatenation is appended to StringBuilder, which creates another instance of StringBuilder to perform concatenation.
while (keys.hasMoreElements()) {
Object key = keys.nextElement();
sb.append(key + "=" + get(key) + ", ");
}
The result of string concatenation is appended to StringBuilder, which creates another instance of StringBuilder to perform concatenation.
- relates to
-
JDK-8041679 Replace uses of StringBuffer with StringBuilder within core library classes
-
- Resolved
-