Skip to content

Commit

Permalink
fix getMessage()
Browse files Browse the repository at this point in the history
  • Loading branch information
hank-cp committed Dec 31, 2019
1 parent 8b1e0fd commit f0cb860
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ dependencies {
// Properties
//*************************************************************************

version = "0.1.1"
version = "0.1.2"

//*************************************************************************
// Compile & Assemble
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public static String getMessage(Class<?> probeClazz, String msgKey, Object...par
public static String getMessage(ClassLoader classLoader, String msgKey, Object...params) {
assert ctxCache.containsKey(classLoader);
try {
return Optional.ofNullable(getBean(MessageSource.class)).map(bean -> bean.getMessage(
return Optional.ofNullable(getBean(classLoader, MessageSource.class)).map(bean -> bean.getMessage(
msgKey, params, LocaleContextHolder.getLocale())).orElse(msgKey);
} catch (NoSuchMessageException ignored) {
return msgKey;
Expand Down
Empty file removed version.properties
Empty file.

0 comments on commit f0cb860

Please sign in to comment.