Skip to content

Commit 5416808

Browse files
committed
feat: add final to job and stepBuilderFactory fields
1 parent 8467357 commit 5416808

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

spring-batch-core/src/main/java/org/springframework/batch/core/configuration/annotation/JobBuilderFactory.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@
2424
*
2525
* @author Dave Syer
2626
* @author Mahmoud Ben Hassine
27-
*
27+
* @author brick0123
2828
*/
2929
public class JobBuilderFactory {
3030

31-
private JobRepository jobRepository;
31+
private final JobRepository jobRepository;
3232

3333
/**
3434
* @param jobRepository The {@link JobRepository} to be used by the builder factory.

spring-batch-core/src/main/java/org/springframework/batch/core/configuration/annotation/StepBuilderFactory.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@
2525
*
2626
* @author Dave Syer
2727
* @author Mahmoud Ben Hassine
28-
*
28+
* @author brick0123
2929
*/
3030
public class StepBuilderFactory {
3131

32-
private JobRepository jobRepository;
32+
private final JobRepository jobRepository;
3333

34-
private PlatformTransactionManager transactionManager;
34+
private final PlatformTransactionManager transactionManager;
3535

3636
/**
3737
* Constructor for the {@link StepBuilderFactory}.

0 commit comments

Comments
 (0)