synchronized (messageFormat) {
return resolveArguments(args, locale).formatWith(messageFormat);
}
resolveArguments(args, locale);
synchronized (messageFormat) {
return args.formatWith(messageFormat);
}
That's what they do in the Spring MessageSourceSupport, and I don't understand what resolveArguments() does if we don't use the result?
In ICUMessageSourceSupport, I'm wondering if we should do
instead of:
That's what they do in the Spring MessageSourceSupport, and I don't understand what resolveArguments() does if we don't use the result?
spring-icu/src/main/java/com/devtrigger/grails/icu/ICUMessageSourceSupport.java
Lines 120 to 123 in 2ed6735
https://github.com/spring-projects/spring-framework/blob/00d2606b000f9bdafbd7f4a16b6599fb51b53fa4/spring-context/src/main/java/org/springframework/context/support/MessageSourceSupport.java#L147-L149