mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Fix nullability warnings and javadoc-triggered package cycles
This commit is contained in:
+2
-3
@@ -231,11 +231,10 @@ public class MockHttpServletResponse implements HttpServletResponse {
|
||||
* @since 5.2
|
||||
* @see #getContentAsString()
|
||||
*/
|
||||
|
||||
public String getContentAsString(Charset fallbackCharset) throws UnsupportedEncodingException {
|
||||
return isCharset() ?
|
||||
return (isCharset() && this.characterEncoding != null ?
|
||||
this.content.toString(this.characterEncoding) :
|
||||
this.content.toString(fallbackCharset.name());
|
||||
this.content.toString(fallbackCharset.name()));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user