Updated log statements to be localizable.

This commit is contained in:
Inderjeet Singh 2010-06-15 20:40:12 +00:00
parent 9cd72ca7fb
commit 6728c742d2
2 changed files with 2 additions and 3 deletions

View File

@ -100,7 +100,7 @@ final class MappedObjectConstructor implements ObjectConstructor {
*/
<T> void register(Type typeOfT, InstanceCreator<? extends T> creator) {
if (instanceCreatorMap.hasSpecificHandlerFor(typeOfT)) {
log.log(Level.WARNING, "Overriding the existing InstanceCreator for " + typeOfT);
log.log(Level.WARNING, "Overriding the existing InstanceCreator for {0}", typeOfT);
}
instanceCreatorMap.register(typeOfT, creator);
}

View File

@ -46,8 +46,7 @@ final class ParameterizedTypeHandlerMap<T> {
"Attempted to modify an unmodifiable map.");
}
if (hasSpecificHandlerFor(typeOfT)) {
logger.log(Level.WARNING,
"Overriding the existing type handler for " + typeOfT);
logger.log(Level.WARNING, "Overriding the existing type handler for {0}", typeOfT);
}
map.put(typeOfT, value);
}