Skip to content

Commit 01a223d

Browse files
refactoring
1 parent 40d219e commit 01a223d

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

skeletonBatch/src/main/java/com/example/batch/job/SampleJob.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,7 @@ public Job createSampleJob() {
3232
.build();
3333

3434
// Build and return the job
35-
Job myJob =
36-
new JobBuilder("sample-job", jobRepository)
37-
.start(myStep)
38-
.build();
35+
Job myJob = new JobBuilder("sample-job", jobRepository).start(myStep).build();
3936

4037
log.info("----------- Job registered successfully: {} -----------", myJob.getName());
4138

skeletonBatch/src/main/java/com/example/batch/logic/SampleLogic.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ public class SampleLogic implements Tasklet {
1616
private final SampleService sampleService;
1717

1818
@Override
19-
public RepeatStatus execute(StepContribution contribution,
20-
ChunkContext chunkContext) throws Exception {
19+
public RepeatStatus execute(StepContribution contribution, ChunkContext chunkContext)
20+
throws Exception {
2121
log.info("----------- START ----------- Batch Processing -----------");
2222

2323
try {

0 commit comments

Comments
 (0)