Skip to content

Commit 89bb9cb

Browse files
committed
Polish Javadoc
1 parent 9b07290 commit 89bb9cb

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

spring-test/src/main/java/org/springframework/mock/web/MockHttpServletResponse.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2019 the original author or authors.
2+
* Copyright 2002-2020 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -424,7 +424,7 @@ public boolean containsHeader(String name) {
424424

425425
/**
426426
* Return the names of all specified headers as a Set of Strings.
427-
* <p>As of Servlet 3.0, this method is also defined HttpServletResponse.
427+
* <p>As of Servlet 3.0, this method is also defined in {@link HttpServletResponse}.
428428
* @return the {@code Set} of header name {@code Strings}, or an empty {@code Set} if none
429429
*/
430430
@Override
@@ -435,7 +435,7 @@ public Collection<String> getHeaderNames() {
435435
/**
436436
* Return the primary value for the given header as a String, if any.
437437
* Will return the first value in case of multiple values.
438-
* <p>As of Servlet 3.0, this method is also defined in HttpServletResponse.
438+
* <p>As of Servlet 3.0, this method is also defined in {@link HttpServletResponse}.
439439
* As of Spring 3.1, it returns a stringified value for Servlet 3.0 compatibility.
440440
* Consider using {@link #getHeaderValue(String)} for raw Object access.
441441
* @param name the name of the header
@@ -450,7 +450,7 @@ public String getHeader(String name) {
450450

451451
/**
452452
* Return all values for the given header as a List of Strings.
453-
* <p>As of Servlet 3.0, this method is also defined in HttpServletResponse.
453+
* <p>As of Servlet 3.0, this method is also defined in {@link HttpServletResponse}.
454454
* As of Spring 3.1, it returns a List of stringified values for Servlet 3.0 compatibility.
455455
* Consider using {@link #getHeaderValues(String)} for raw Object access.
456456
* @param name the name of the header

spring-web/src/main/java/org/springframework/http/HttpHeaders.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -906,11 +906,12 @@ public void setContentLanguage(@Nullable Locale locale) {
906906
}
907907

908908
/**
909-
* Return the first {@link Locale} of the content languages,
910-
* as specified by the {@literal Content-Language} header.
911-
* <p>Returns {@code null} when the content language is unknown.
912-
* <p>Use {@code getValuesAsList(CONTENT_LANGUAGE)} if you need
913-
* to get multiple content languages.</p>
909+
* Get the first {@link Locale} of the content languages, as specified by the
910+
* {@code Content-Language} header.
911+
* <p>Use {@link #getValuesAsList(String)} if you need to get multiple content
912+
* languages.
913+
* @return the first {@code Locale} of the content languages, or {@code null}
914+
* if unknown
914915
* @since 5.0
915916
*/
916917
@Nullable

0 commit comments

Comments
 (0)