Skip to content

Commit 9cb89e3

Browse files
izeyemhalbritter
authored andcommitted
Polish SimpleAsyncTaskExecutorBuilder
See gh-37436
1 parent 6094212 commit 9cb89e3

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

spring-boot-project/spring-boot/src/main/java/org/springframework/boot/task/SimpleAsyncTaskExecutorBuilder.java

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,7 @@ public class SimpleAsyncTaskExecutorBuilder {
5555
private final Set<SimpleAsyncTaskExecutorCustomizer> customizers;
5656

5757
public SimpleAsyncTaskExecutorBuilder() {
58-
this.virtualThreads = null;
59-
this.threadNamePrefix = null;
60-
this.concurrencyLimit = null;
61-
this.taskDecorator = null;
62-
this.customizers = null;
58+
this(null, null, null, null, null);
6359
}
6460

6561
private SimpleAsyncTaskExecutorBuilder(Boolean virtualThreads, String threadNamePrefix, Integer concurrencyLimit,
@@ -112,7 +108,7 @@ public SimpleAsyncTaskExecutorBuilder taskDecorator(TaskDecorator taskDecorator)
112108
}
113109

114110
/**
115-
* Set the {@link SimpleAsyncTaskExecutorCustomizer TaskExecutorCustomizers} that
111+
* Set the {@link SimpleAsyncTaskExecutorCustomizer customizers} that
116112
* should be applied to the {@link SimpleAsyncTaskExecutor}. Customizers are applied
117113
* in the order that they were added after builder configuration has been applied.
118114
* Setting this value will replace any previously configured customizers.
@@ -126,13 +122,13 @@ public SimpleAsyncTaskExecutorBuilder customizers(SimpleAsyncTaskExecutorCustomi
126122
}
127123

128124
/**
129-
* Set the {@link SimpleAsyncTaskExecutorCustomizer TaskExecutorCustomizers} that
125+
* Set the {@link SimpleAsyncTaskExecutorCustomizer customizers} that
130126
* should be applied to the {@link SimpleAsyncTaskExecutor}. Customizers are applied
131127
* in the order that they were added after builder configuration has been applied.
132128
* Setting this value will replace any previously configured customizers.
133129
* @param customizers the customizers to set
134130
* @return a new builder instance
135-
* @see #additionalCustomizers(SimpleAsyncTaskExecutorCustomizer...)
131+
* @see #additionalCustomizers(Iterable)
136132
*/
137133
public SimpleAsyncTaskExecutorBuilder customizers(
138134
Iterable<? extends SimpleAsyncTaskExecutorCustomizer> customizers) {
@@ -142,7 +138,7 @@ public SimpleAsyncTaskExecutorBuilder customizers(
142138
}
143139

144140
/**
145-
* Add {@link SimpleAsyncTaskExecutorCustomizer TaskExecutorCustomizers} that should
141+
* Add {@link SimpleAsyncTaskExecutorCustomizer customizers} that should
146142
* be applied to the {@link SimpleAsyncTaskExecutor}. Customizers are applied in the
147143
* order that they were added after builder configuration has been applied.
148144
* @param customizers the customizers to add
@@ -155,12 +151,12 @@ public SimpleAsyncTaskExecutorBuilder additionalCustomizers(SimpleAsyncTaskExecu
155151
}
156152

157153
/**
158-
* Add {@link SimpleAsyncTaskExecutorCustomizer TaskExecutorCustomizers} that should
154+
* Add {@link SimpleAsyncTaskExecutorCustomizer customizers} that should
159155
* be applied to the {@link SimpleAsyncTaskExecutor}. Customizers are applied in the
160156
* order that they were added after builder configuration has been applied.
161157
* @param customizers the customizers to add
162158
* @return a new builder instance
163-
* @see #customizers(SimpleAsyncTaskExecutorCustomizer...)
159+
* @see #customizers(Iterable)
164160
*/
165161
public SimpleAsyncTaskExecutorBuilder additionalCustomizers(
166162
Iterable<? extends SimpleAsyncTaskExecutorCustomizer> customizers) {

0 commit comments

Comments
 (0)