-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Closed
Description
The javadoc on HttpHeaders#setContentLanguage appears to be referring to a non-existing vararg variant of HttpHeaders#set:
spring-framework/spring-web/src/main/java/org/springframework/http/HttpHeaders.java
Lines 874 to 883 in e0654a5
| /** | |
| * Set the {@link Locale} of the content language, | |
| * as specified by the {@literal Content-Language} header. | |
| * <p>Use {@code set(CONTENT_LANGUAGE, ...)} if you need | |
| * to set multiple content languages.</p> | |
| * @since 5.0 | |
| */ | |
| public void setContentLanguage(@Nullable Locale locale) { | |
| setOrRemove(CONTENT_LANGUAGE, (locale != null ? locale.toLanguageTag() : null)); | |
| } |
Metadata
Metadata
Assignees
Labels
type: taskA general taskA general task