Suppress deprecation warnings in tests

This commit is contained in:
Sam Brannen
2022-10-20 16:57:40 +02:00
parent fcbd5ec80a
commit 53f513f90c

View File

@@ -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);