Rename MimeType's getCharSet() to getCharset()
Issue: SPR-14172
This commit is contained in:
@@ -261,7 +261,7 @@ public class FormHttpMessageConverterTests {
|
||||
@Override
|
||||
public String getCharacterEncoding() {
|
||||
MediaType type = this.outputMessage.getHeaders().getContentType();
|
||||
return (type != null && type.getCharSet() != null ? type.getCharSet().name() : null);
|
||||
return (type != null && type.getCharset() != null ? type.getCharset().name() : null);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -390,8 +390,8 @@ public class MockHttpServletRequest implements HttpServletRequest {
|
||||
if (contentType != null) {
|
||||
try {
|
||||
MediaType mediaType = MediaType.parseMediaType(contentType);
|
||||
if (mediaType.getCharSet() != null) {
|
||||
this.characterEncoding = mediaType.getCharSet().name();
|
||||
if (mediaType.getCharset() != null) {
|
||||
this.characterEncoding = mediaType.getCharset().name();
|
||||
}
|
||||
}
|
||||
catch (Exception ex) {
|
||||
|
||||
@@ -236,8 +236,8 @@ public class MockHttpServletResponse implements HttpServletResponse {
|
||||
if (contentType != null) {
|
||||
try {
|
||||
MediaType mediaType = MediaType.parseMediaType(contentType);
|
||||
if (mediaType.getCharSet() != null) {
|
||||
this.characterEncoding = mediaType.getCharSet().name();
|
||||
if (mediaType.getCharset() != null) {
|
||||
this.characterEncoding = mediaType.getCharset().name();
|
||||
this.charset = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user