lamdbas containing only one statement should not nest this statement in a block
This commit is contained in:
committed by
Juergen Hoeller
parent
6163f2d32f
commit
0c45c4c6a3
@@ -363,9 +363,8 @@ public abstract class DataBufferUtils {
|
||||
Assert.isTrue(position >= 0, "'position' must be >= 0");
|
||||
|
||||
Flux<DataBuffer> flux = Flux.from(source);
|
||||
return Flux.create(sink -> {
|
||||
flux.subscribe(new AsynchronousFileChannelWriteCompletionHandler(sink, channel, position));
|
||||
});
|
||||
return Flux.create(sink ->
|
||||
flux.subscribe(new AsynchronousFileChannelWriteCompletionHandler(sink, channel, position)));
|
||||
}
|
||||
|
||||
private static void closeChannel(@Nullable Channel channel) {
|
||||
|
||||
Reference in New Issue
Block a user