|
[
Permlink
| « Hide
]
Mauro Talevi added a comment - 22/Jun/06 06:26 AM
How about renaming it StringConstructableConverter?
Or better yet SingleStringConstructableConverter?
This is why I reply on brighter collaborators to name/rename things ... after committing
Of course, String itself matches the ToString ideal.
Thus ... xStream.useAttributeFor( ... , String.class); could be replaced with ... xStream.useAttributeFor( ... , String.class); as long as 'useAttributeFor' performs a silent ... xStream.registerConverter(new ConventionalStringConverter(String.class)); Applied, using ToStringConverter as name.
|
||||||||||||||||||||||||||||||||||||||||