diff --git a/spring-web/src/main/java/org/springframework/http/converter/StringHttpMessageConverter.java b/spring-web/src/main/java/org/springframework/http/converter/StringHttpMessageConverter.java index 4671c59a8f..49aace6e56 100644 --- a/spring-web/src/main/java/org/springframework/http/converter/StringHttpMessageConverter.java +++ b/spring-web/src/main/java/org/springframework/http/converter/StringHttpMessageConverter.java @@ -130,10 +130,6 @@ public class StringHttpMessageConverter extends AbstractHttpMessageConverter> converters = new ArrayList<>(); - converters.add(new MappingJackson2HttpMessageConverter()); - RequestResponseBodyMethodProcessor processor = new RequestResponseBodyMethodProcessor(converters); - - Object returnValue = new JacksonController().defaultCharset(); - processor.handleReturnValue(returnValue, methodReturnType, this.container, this.request); - - assertThat(this.servletResponse.getCharacterEncoding()).isEqualTo("UTF-8"); - } - @Test // SPR-14520 public void resolveArgumentTypeVariableWithGenericInterface() throws Exception { this.servletRequest.setContent("\"foo\"".getBytes("UTF-8"));