mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-10-09 16:49:36 +00:00
Suppress deprecation warnings in tests
This commit is contained in:
@@ -530,6 +530,7 @@ class DataBufferTests extends AbstractDataBufferAllocatingTests {
|
||||
DataBuffer buffer = createDataBuffer(3);
|
||||
buffer.write(new byte[]{'a', 'b'});
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
ByteBuffer result = buffer.asByteBuffer(1, 2);
|
||||
assertThat(result.capacity()).isEqualTo(2);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user