mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-17 08:24:13 +00:00
Update due to deprecation warnings
This commit is contained in:
+1
-1
@@ -224,7 +224,7 @@ public abstract class AbstractHttpMessageConverter<T> implements HttpMessageConv
|
||||
}
|
||||
@Override
|
||||
public boolean repeatable() {
|
||||
return supportsRepeatableWrites(t);
|
||||
return canWriteRepeatedly(t, null);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
+1
-1
@@ -52,7 +52,7 @@ import static org.mockito.Mockito.mock;
|
||||
* @author Brian Clozel
|
||||
* @author Sam Brannen
|
||||
*/
|
||||
@SuppressWarnings("removal")
|
||||
@SuppressWarnings({ "deprecation", "removal"})
|
||||
class HttpMessageConverterExtractorTests {
|
||||
|
||||
private final HttpMessageConverter<String> converter = mock();
|
||||
|
||||
+1
-1
@@ -202,7 +202,7 @@ class RestTemplateXhrTransportTests {
|
||||
}
|
||||
|
||||
|
||||
@SuppressWarnings("removal")
|
||||
@SuppressWarnings({"deprecation", "removal"})
|
||||
private static class TestRestTemplate extends RestTemplate {
|
||||
|
||||
private Queue<ClientHttpResponse> responses = new LinkedBlockingDeque<>();
|
||||
|
||||
Reference in New Issue
Block a user