review updates

This commit is contained in:
Krzysztof Majewski 2019-09-17 09:07:47 +02:00
parent e48b29d58c
commit b3b7e78ce6
2 changed files with 9 additions and 8 deletions

View File

@ -17,12 +17,13 @@ public class MyMessageInterpolator implements MessageInterpolator {
@Override
public String interpolate(String messageTemplate, Context context) {
logger.debug("Selecting the language " + Locale.getDefault() + " for the error message.");
messageTemplate = messageTemplate.toUpperCase();
return defaultInterpolator.interpolate(messageTemplate, context, Locale.getDefault());
}
@Override
public String interpolate(String messageTemplate, Context context, Locale locale) {
messageTemplate = messageTemplate.toUpperCase();
return defaultInterpolator.interpolate(messageTemplate, context, locale);
}
}