From a211d1472ec718f54d01707c866c24ed7322222b Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Wed, 8 Jun 2016 15:22:01 +0200 Subject: [PATCH] Polishing --- .../converter/ObjectToStringHttpMessageConverter.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/spring-web/src/main/java/org/springframework/http/converter/ObjectToStringHttpMessageConverter.java b/spring-web/src/main/java/org/springframework/http/converter/ObjectToStringHttpMessageConverter.java index 0b22f4c9704..2e01e5eb39e 100644 --- a/spring-web/src/main/java/org/springframework/http/converter/ObjectToStringHttpMessageConverter.java +++ b/spring-web/src/main/java/org/springframework/http/converter/ObjectToStringHttpMessageConverter.java @@ -31,9 +31,10 @@ import org.springframework.util.Assert; * the String content to and from the target object type. * *

By default, this converter supports the media type {@code text/plain} only. - * This can be overridden by setting the - * {@link #setSupportedMediaTypes supportedMediaTypes} property. - * Example of usage: + * This can be overridden through the {@link #setSupportedMediaTypes supportedMediaTypes} + * property. + * + *

A usage example: * *

  * <bean class="org.springframework.http.converter.ObjectToStringHttpMessageConverter">
@@ -72,7 +73,7 @@ public class ObjectToStringHttpMessageConverter extends AbstractHttpMessageConve
 	public ObjectToStringHttpMessageConverter(ConversionService conversionService, Charset defaultCharset) {
 		super(defaultCharset, MediaType.TEXT_PLAIN);
 
-		Assert.notNull(conversionService, "conversionService is required");
+		Assert.notNull(conversionService, "ConversionService is required");
 		this.conversionService = conversionService;
 		this.stringHttpMessageConverter = new StringHttpMessageConverter(defaultCharset);
 	}
@@ -104,7 +105,7 @@ public class ObjectToStringHttpMessageConverter extends AbstractHttpMessageConve
 	}
 
 	@Override
-	protected Object readInternal(Class clazz, HttpInputMessage inputMessage) throws IOException {
+	protected Object readInternal(Class clazz, HttpInputMessage inputMessage) throws IOException {
 		String value = this.stringHttpMessageConverter.readInternal(String.class, inputMessage);
 		return this.conversionService.convert(value, clazz);
 	}