Skip to content

Commit d7824c7

Browse files
committed
Polishing
1 parent f91b224 commit d7824c7

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

spring-core/src/main/java/org/springframework/core/io/buffer/DataBuffer.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -519,15 +519,13 @@ default String toString(Charset charset) {
519519
* A dedicated iterator type that ensures the lifecycle of iterated
520520
* {@link ByteBuffer} elements. This iterator must be used in a
521521
* try-with-resources clause or explicitly {@linkplain #close() closed}.
522-
*
523522
* @see DataBuffer#readableByteBuffers()
524523
* @see DataBuffer#writableByteBuffers()
525524
*/
526525
interface ByteBufferIterator extends Iterator<ByteBuffer>, Closeable {
527526

528527
@Override
529528
void close();
530-
531529
}
532530

533531
}

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
class DataBufferUtilsTests extends AbstractDataBufferAllocatingTests {
6666

6767
private final Resource resource;
68+
6869
private final Path tempFile;
6970

7071

@@ -207,7 +208,7 @@ void readAsynchronousFileChannelCancel(DataBufferFactory bufferFactory) throws E
207208
.verify();
208209
}
209210

210-
@ParameterizedDataBufferAllocatingTest // gh-22107
211+
@ParameterizedDataBufferAllocatingTest // gh-22107
211212
void readAsynchronousFileChannelCancelWithoutDemand(DataBufferFactory bufferFactory) throws Exception {
212213
super.bufferFactory = bufferFactory;
213214

@@ -790,7 +791,6 @@ void SPR16070(DataBufferFactory bufferFactory) throws Exception {
790791
.consumeNextWith(stringConsumer("c"))
791792
.expectComplete()
792793
.verify(Duration.ofSeconds(5));
793-
794794
}
795795

796796
private Answer<Integer> putByte(int b) {
@@ -833,7 +833,7 @@ void joinWithLimit(DataBufferFactory bufferFactory) {
833833
.verifyError(DataBufferLimitException.class);
834834
}
835835

836-
@Test // gh-26060
836+
@Test // gh-26060
837837
void joinWithLimitDoesNotOverRelease() {
838838
NettyDataBufferFactory bufferFactory = new NettyDataBufferFactory(PooledByteBufAllocator.DEFAULT);
839839
byte[] bytes = "foo-bar-baz".getBytes(StandardCharsets.UTF_8);
@@ -1006,6 +1006,7 @@ void propagateContextPath(DataBufferFactory bufferFactory) throws IOException {
10061006
.verifyComplete();
10071007
}
10081008

1009+
10091010
private static class ZeroDemandSubscriber extends BaseSubscriber<DataBuffer> {
10101011

10111012
@Override

0 commit comments

Comments
 (0)