Polishing

This commit is contained in:
Juergen Hoeller
2017-10-09 13:59:29 +02:00
parent ad4c8e7c0d
commit cc6e6490d2
2 changed files with 18 additions and 1 deletions

View File

@@ -72,7 +72,7 @@ public class HttpMessageConverterExtractor<T> implements ResponseExtractor<T> {
Assert.notNull(responseType, "'responseType' must not be null");
Assert.notEmpty(messageConverters, "'messageConverters' must not be empty");
this.responseType = responseType;
this.responseClass = (responseType instanceof Class) ? (Class<T>) responseType : null;
this.responseClass = (responseType instanceof Class ? (Class<T>) responseType : null);
this.messageConverters = messageConverters;
this.logger = logger;
}