import org.springframework.util.Assert;
import org.springframework.web.util.UriTemplate;
public class RestTemplate extends HttpAccessor implements RestOperations {
private final ResponseExtractor<HttpHeaders> headersExtractor = new HeadersExtractor();
private HttpMessageConverter<?>[] messageConverters =
<BUG>new HttpMessageConverter[] {new ByteArrayHttpMessageConverter(), new StringHttpMessageConverter()};
private ResponseErrorHandler errorHandler = new DefaultResponseErrorHandler();</BUG>
public RestTemplate() {
}
public RestTemplate(ClientHttpRequestFactory requestFactory) {

import org.springframework.util.Assert;
import org.springframework.web.util.UriTemplate;
public class RestTemplate extends HttpAccessor implements RestOperations {
private final ResponseExtractor<HttpHeaders> headersExtractor = new HeadersExtractor();
private HttpMessageConverter<?>[] messageConverters =
new HttpMessageConverter[]{new ByteArrayHttpMessageConverter(), new StringHttpMessageConverter()};
private ResponseErrorHandler errorHandler = new DefaultResponseErrorHandler();
public RestTemplate() {
}
public RestTemplate(ClientHttpRequestFactory requestFactory) {
