Polish contribution

See gh-23219
This commit is contained in:
Sam Brannen
2019-07-16 14:53:51 +02:00
parent adadffe0e1
commit b2b79ae1e6
2 changed files with 27 additions and 1 deletions

View File

@@ -56,6 +56,7 @@ import org.springframework.web.util.WebUtils;
* @author Rod Johnson
* @author Brian Clozel
* @author Vedran Pavic
* @author Sebastien Deleuze
* @since 1.0.2
*/
public class MockHttpServletResponse implements HttpServletResponse {
@@ -219,10 +220,11 @@ public class MockHttpServletResponse implements HttpServletResponse {
/**
* Get the content of the response body as a {@code String}, using the provided
* {@code fallbackCharset} if no charset has been explicitly defined, else using
* {@code fallbackCharset} if no charset has been explicitly defined and otherwise
* using the configured {@linkplain #getCharacterEncoding character encoding}.
* @return the content as a {@code String}
* @throws UnsupportedEncodingException if the character encoding is not supported
* @since 5.2
* @see #getContentAsString()
*/
public String getContentAsString(Charset fallbackCharset) throws UnsupportedEncodingException {