Updated log statements to be localizable.
This commit is contained in:
parent
9cd72ca7fb
commit
6728c742d2
|
@ -100,7 +100,7 @@ final class MappedObjectConstructor implements ObjectConstructor {
|
||||||
*/
|
*/
|
||||||
<T> void register(Type typeOfT, InstanceCreator<? extends T> creator) {
|
<T> void register(Type typeOfT, InstanceCreator<? extends T> creator) {
|
||||||
if (instanceCreatorMap.hasSpecificHandlerFor(typeOfT)) {
|
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);
|
instanceCreatorMap.register(typeOfT, creator);
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,8 +46,7 @@ final class ParameterizedTypeHandlerMap<T> {
|
||||||
"Attempted to modify an unmodifiable map.");
|
"Attempted to modify an unmodifiable map.");
|
||||||
}
|
}
|
||||||
if (hasSpecificHandlerFor(typeOfT)) {
|
if (hasSpecificHandlerFor(typeOfT)) {
|
||||||
logger.log(Level.WARNING,
|
logger.log(Level.WARNING, "Overriding the existing type handler for {0}", typeOfT);
|
||||||
"Overriding the existing type handler for " + typeOfT);
|
|
||||||
}
|
}
|
||||||
map.put(typeOfT, value);
|
map.put(typeOfT, value);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user