Details
-
Type:
Improvement
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.5
-
Fix Version/s: 2.6
-
Component/s: Pattern Converters
-
Labels:None
-
Epic Link:
Description
PatternLayout's NamePatternConverter and ClassNamePatternConverter delegate to NameAbbreviator.
The current API that NameAbbreviator supports is
String abbreviate(String original)
This creates temporary objects. However, the clients of NameAbbreviator already have a StringBuilder to write into. I propose to modify the NameAbbreviator API to this:
void abbreviate(String original, StringBuilder destination)