Skip to content

Commit

Permalink
Avoid CGLIB requirement in MessageSourceAutoConfiguration
Browse files Browse the repository at this point in the history
Closes gh-13824
  • Loading branch information
snicoll committed Jul 19, 2018
1 parent ceaac98 commit 184cd0c
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ public MessageSourceProperties messageSourceProperties() {
}

@Bean
public MessageSource messageSource() {
MessageSourceProperties properties = messageSourceProperties();
public MessageSource messageSource(MessageSourceProperties properties) {
ResourceBundleMessageSource messageSource = new ResourceBundleMessageSource();
if (StringUtils.hasText(properties.getBasename())) {
messageSource.setBasenames(StringUtils.commaDelimitedListToStringArray(
Expand Down

0 comments on commit 184cd0c

Please sign in to comment.