Fix nullability warnings and javadoc-triggered package cycles
This commit is contained in:
@@ -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