Polish Javadoc

This commit is contained in:
Sam Brannen
2020-07-27 14:38:24 +02:00
parent 27e0febacf
commit d2db43a900
2 changed files with 10 additions and 9 deletions

View File

@@ -906,11 +906,12 @@ public class HttpHeaders implements MultiValueMap<String, String>, Serializable
}
/**
* Return the first {@link Locale} of the content languages,
* as specified by the {@literal Content-Language} header.
* <p>Returns {@code null} when the content language is unknown.
* <p>Use {@code getValuesAsList(CONTENT_LANGUAGE)} if you need
* to get multiple content languages.</p>
* Get the first {@link Locale} of the content languages, as specified by the
* {@code Content-Language} header.
* <p>Use {@link #getValuesAsList(String)} if you need to get multiple content
* languages.
* @return the first {@code Locale} of the content languages, or {@code null}
* if unknown
* @since 5.0
*/
@Nullable