-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
P5
-
Affects Version/s: 8, 9
-
Component/s: client-libs
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
-