Polishing
Closes gh-31522
This commit is contained in:
@@ -54,7 +54,7 @@ final class OutputStreamPublisher implements Publisher<DataBuffer> {
|
||||
private final int chunkSize;
|
||||
|
||||
|
||||
public OutputStreamPublisher(Consumer<OutputStream> outputStreamConsumer, DataBufferFactory bufferFactory,
|
||||
OutputStreamPublisher(Consumer<OutputStream> outputStreamConsumer, DataBufferFactory bufferFactory,
|
||||
Executor executor, int chunkSize) {
|
||||
|
||||
this.outputStreamConsumer = outputStreamConsumer;
|
||||
@@ -99,7 +99,7 @@ final class OutputStreamPublisher implements Publisher<DataBuffer> {
|
||||
private long produced;
|
||||
|
||||
|
||||
public OutputStreamSubscription(Subscriber<? super DataBuffer> actual,
|
||||
OutputStreamSubscription(Subscriber<? super DataBuffer> actual,
|
||||
Consumer<OutputStream> outputStreamConsumer, DataBufferFactory bufferFactory, int chunkSize) {
|
||||
|
||||
this.actual = actual;
|
||||
|
||||
@@ -22,7 +22,7 @@ import io.micrometer.context.ContextSnapshotFactory;
|
||||
import org.springframework.core.task.TaskDecorator;
|
||||
|
||||
/**
|
||||
* {@link TaskDecorator} that {@link ContextSnapshot#wrap(Runnable) wrap the execution} of
|
||||
* {@link TaskDecorator} that {@link ContextSnapshot#wrap(Runnable) wraps the execution} of
|
||||
* tasks, assisting with context propagation.
|
||||
* <p>This operation is only useful when the task execution is scheduled on a different
|
||||
* thread than the original call stack; this depends on the choice of
|
||||
|
||||
@@ -49,7 +49,7 @@ public class SingletonSupplier<T> implements Supplier<T> {
|
||||
private volatile T singletonInstance;
|
||||
|
||||
/**
|
||||
* Guards access to write operations on the response.
|
||||
* Guards access to write operations on the {@code singletonInstance} field.
|
||||
*/
|
||||
private final Lock writeLock = new ReentrantLock();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user