Browse Source

Suppress deprecation warnings in tests

pull/29364/head
Sam Brannen 2 years ago
parent
commit
53f513f90c
  1. 1
      spring-core/src/test/java/org/springframework/core/io/buffer/DataBufferTests.java

1
spring-core/src/test/java/org/springframework/core/io/buffer/DataBufferTests.java

@ -530,6 +530,7 @@ class DataBufferTests extends AbstractDataBufferAllocatingTests { @@ -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);

Loading…
Cancel
Save