-
Notifications
You must be signed in to change notification settings - Fork 38.6k
Open
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancementA general enhancement
Milestone
Description
My IDE is complaining that I'm passing a null Locale
value to:
String getMessage(String code, @Nullable Object[] args, Locale locale) throws NoSuchMessageException;
Which obviously does not have @Nullable
, but the implementation definitely accepts null
and uses the default Locale
, which is what we want and have been doing with Spring 5.x.
And, in fact, AbstractMessageSource.getMessageInternal
does have @Nullable
:
protected String getMessageInternal(@Nullable String code, @Nullable Object[] args, @Nullable Locale locale) {
Metadata
Metadata
Assignees
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancementA general enhancement