Optimize some StringBuilder.append() calls
Closes gh-13961
This commit is contained in:
committed by
Stephane Nicoll
parent
d31f68380a
commit
66b1742f96
@@ -63,9 +63,11 @@ public final class ItemMetadata implements Comparable<ItemMetadata> {
|
||||
}
|
||||
StringBuilder fullName = new StringBuilder((prefix != null) ? prefix : "");
|
||||
if (fullName.length() > 0 && name != null) {
|
||||
fullName.append(".");
|
||||
fullName.append('.');
|
||||
}
|
||||
if (name != null) {
|
||||
fullName.append(ConfigurationMetadata.toDashedCase(name));
|
||||
}
|
||||
fullName.append((name != null) ? ConfigurationMetadata.toDashedCase(name) : "");
|
||||
return fullName.toString();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user