Skip to content

Fix Javadoc in AcceptHeaderLocaleResolver #26793

@m1stake

Description

@m1stake

Affects: spring-webmvc 5.1.6.RELEASE


org.springframework.web.servlet.i18n.AcceptHeaderLocaleResolver.setDefaultLocale, line 74

// ...
// By default this is not set in which case when there is "Accept-Language" header 
// ...
public void setDefaultLocale(@Nullable Locale defaultLocale) { ... }

I think it means "when there is no 'Accept-Language' header".

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: taskA general task

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions