The DefaultFormatter is the class that is used to convert an Entry<Key,Value> to the line of text displayed in the shell. Most notably, it encodes non-printable ASCII data as hex.
For users who want to implement their own Formatter, they do not have access to the same formatting methods that the DefaultFormatter uses because of the visibility modifiers on the methods. These methods should be available for use by other classes. Letting classes extend the DefaultFormatter would be even better.
Additionally, in the DefaultFormatter, in the method public static String formatEntry(Entry<Key,Value>, DateFormat), a StringBuilder is used to reduce the number of intermediate String objects that are created for each concatenation; however, the methods to get each component of the Key will create a new Text object each time.
Method invocations like
Should be replaced with:
Where a single Text object is reused for the entire method.
|Field||Original Value||New Value|
|Assignee||Jacob Meisler [ meislerj ]|
|Status||Open [ 1 ]||Patch Available [ 10002 ]|
|Affects Version/s||1.6.0 [ 12322468 ]|
|Affects Version/s||1.5.1 [ 12324399 ]|
|Fix Version/s||1.5.2 [ 12326272 ]|
|Status||Patch Available [ 10002 ]||Resolved [ 5 ]|
|Fix Version/s||1.6.1 [ 12325441 ]|
|Fix Version/s||1.7.0 [ 12324607 ]|
|Resolution||Fixed [ 1 ]|