Skip to content

Commit 785ab57

Browse files
committed
Sync MockHttpServletResponse changes
1 parent 89bb9cb commit 785ab57

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spring-web/src/testFixtures/java/org/springframework/web/testfixture/servlet/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

0 commit comments

Comments
 (0)