Skip to content

Commit d6904ba

Browse files
committed
Add/Update deprecation notice
1 parent c1ef2c0 commit d6904ba

File tree

6 files changed

+18
-18
lines changed

6 files changed

+18
-18
lines changed

spring-batch-core/src/main/java/org/springframework/batch/core/job/builder/JobBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2006-2022 the original author or authors.
2+
* Copyright 2006-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -34,7 +34,7 @@ public class JobBuilder extends JobBuilderHelper<JobBuilder> {
3434
* @param name the name of the job
3535
* @deprecated use {@link JobBuilder#JobBuilder(String, JobRepository)}
3636
*/
37-
@Deprecated(since = "5.0")
37+
@Deprecated(since = "5.0", forRemoval = true)
3838
public JobBuilder(String name) {
3939
super(name);
4040
}

spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/StepBuilder.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2006-2022 the original author or authors.
2+
* Copyright 2006-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -39,7 +39,7 @@ public class StepBuilder extends StepBuilderHelper<StepBuilder> {
3939
* @param name the name of the step
4040
* @deprecated use {@link StepBuilder#StepBuilder(String, JobRepository)}
4141
*/
42-
@Deprecated(since = "5.0")
42+
@Deprecated(since = "5.0", forRemoval = true)
4343
public StepBuilder(String name) {
4444
super(name);
4545
}
@@ -61,7 +61,7 @@ public StepBuilder(String name, JobRepository jobRepository) {
6161
* @return a {@link TaskletStepBuilder}
6262
* @deprecated use {@link StepBuilder#tasklet(Tasklet, PlatformTransactionManager)}
6363
*/
64-
@Deprecated(since = "5.0")
64+
@Deprecated(since = "5.0", forRemoval = true)
6565
public TaskletStepBuilder tasklet(Tasklet tasklet) {
6666
return new TaskletStepBuilder(this).tasklet(tasklet);
6767
}
@@ -93,7 +93,7 @@ public TaskletStepBuilder tasklet(Tasklet tasklet, PlatformTransactionManager tr
9393
* @param <O> the type of item to be output
9494
* @deprecated use {@link StepBuilder#chunk(int, PlatformTransactionManager)}
9595
*/
96-
@Deprecated(since = "5.0")
96+
@Deprecated(since = "5.0", forRemoval = true)
9797
public <I, O> SimpleStepBuilder<I, O> chunk(int chunkSize) {
9898
return new SimpleStepBuilder<I, O>(this).chunk(chunkSize);
9999
}
@@ -138,7 +138,7 @@ public <I, O> SimpleStepBuilder<I, O> chunk(int chunkSize, PlatformTransactionMa
138138
* @deprecated use
139139
* {@link StepBuilder#chunk(CompletionPolicy, PlatformTransactionManager)}
140140
*/
141-
@Deprecated(since = "5.0")
141+
@Deprecated(since = "5.0", forRemoval = true)
142142
public <I, O> SimpleStepBuilder<I, O> chunk(CompletionPolicy completionPolicy) {
143143
return new SimpleStepBuilder<I, O>(this).chunk(completionPolicy);
144144
}

spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/TaskletStepBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2006-2022 the original author or authors.
2+
* Copyright 2006-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -44,7 +44,7 @@ public TaskletStepBuilder(StepBuilderHelper<?> parent) {
4444
* @deprecated use
4545
* {@link TaskletStepBuilder#tasklet(Tasklet, PlatformTransactionManager)}
4646
*/
47-
@Deprecated(since = "5.0")
47+
@Deprecated(since = "5.0", forRemoval = true)
4848
public TaskletStepBuilder tasklet(Tasklet tasklet) {
4949
this.tasklet = tasklet;
5050
return this;

spring-batch-integration/src/main/java/org/springframework/batch/integration/chunk/RemoteChunkingManagerStepBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019-2022 the original author or authors.
2+
* Copyright 2019-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -88,7 +88,7 @@ public class RemoteChunkingManagerStepBuilder<I, O> extends FaultTolerantStepBui
8888
* @deprecated use
8989
* {@link RemoteChunkingManagerStepBuilder#RemoteChunkingManagerStepBuilder(String, JobRepository)}
9090
*/
91-
@Deprecated(since = "5.0")
91+
@Deprecated(since = "5.0", forRemoval = true)
9292
public RemoteChunkingManagerStepBuilder(String stepName) {
9393
super(new StepBuilder(stepName));
9494
}

spring-batch-integration/src/main/java/org/springframework/batch/integration/partition/RemotePartitioningManagerStepBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019-2022 the original author or authors.
2+
* Copyright 2019-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -84,7 +84,7 @@ public class RemotePartitioningManagerStepBuilder extends PartitionStepBuilder {
8484
* @deprecated use
8585
* {@link RemotePartitioningManagerStepBuilder#RemotePartitioningManagerStepBuilder(String, JobRepository)}
8686
*/
87-
@Deprecated
87+
@Deprecated(since = "5.0", forRemoval = true)
8888
public RemotePartitioningManagerStepBuilder(String stepName) {
8989
super(new StepBuilder(stepName));
9090
}

spring-batch-integration/src/main/java/org/springframework/batch/integration/partition/RemotePartitioningWorkerStepBuilder.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2018-2022 the original author or authors.
2+
* Copyright 2018-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -86,7 +86,7 @@ public class RemotePartitioningWorkerStepBuilder extends StepBuilder {
8686
* @deprecated use
8787
* {@link RemotePartitioningWorkerStepBuilder#RemotePartitioningWorkerStepBuilder(String, JobRepository)}
8888
*/
89-
@Deprecated(since = "5.0")
89+
@Deprecated(since = "5.0", forRemoval = true)
9090
public RemotePartitioningWorkerStepBuilder(String name) {
9191
super(name);
9292
}
@@ -187,7 +187,7 @@ public RemotePartitioningWorkerStepBuilder allowStartIfComplete(boolean allowSta
187187
return this;
188188
}
189189

190-
@Deprecated(since = "5.0")
190+
@Deprecated(since = "5.0", forRemoval = true)
191191
@Override
192192
public TaskletStepBuilder tasklet(Tasklet tasklet) {
193193
configureWorkerIntegrationFlow();
@@ -200,7 +200,7 @@ public TaskletStepBuilder tasklet(Tasklet tasklet, PlatformTransactionManager tr
200200
return super.tasklet(tasklet, transactionManager);
201201
}
202202

203-
@Deprecated(since = "5.0")
203+
@Deprecated(since = "5.0", forRemoval = true)
204204
@Override
205205
public <I, O> SimpleStepBuilder<I, O> chunk(int chunkSize) {
206206
configureWorkerIntegrationFlow();
@@ -213,7 +213,7 @@ public <I, O> SimpleStepBuilder<I, O> chunk(int chunkSize, PlatformTransactionMa
213213
return super.chunk(chunkSize, transactionManager);
214214
}
215215

216-
@Deprecated(since = "5.0")
216+
@Deprecated(since = "5.0", forRemoval = true)
217217
@Override
218218
public <I, O> SimpleStepBuilder<I, O> chunk(CompletionPolicy completionPolicy) {
219219
configureWorkerIntegrationFlow();

0 commit comments

Comments
 (0)