|
72 | 72 | * @author Michael Minella
|
73 | 73 | * @author Will Schipp
|
74 | 74 | * @author Mahmoud Ben Hassine
|
| 75 | + * @author Seonkyo Ok |
75 | 76 | */
|
76 | 77 | public class TaskletStep extends AbstractStep {
|
77 | 78 |
|
@@ -239,7 +240,7 @@ protected void doExecute(StepExecution stepExecution) throws Exception {
|
239 | 240 | public RepeatStatus doInChunkContext(RepeatContext repeatContext, ChunkContext chunkContext)
|
240 | 241 | throws Exception {
|
241 | 242 |
|
242 |
| - StepExecution stepExecution = chunkContext.getStepContext().getStepExecution(); |
| 243 | + final StepExecution stepExecution = chunkContext.getStepContext().getStepExecution(); |
243 | 244 |
|
244 | 245 | // Before starting a new transaction, check for
|
245 | 246 | // interruption.
|
@@ -374,7 +375,7 @@ public RepeatStatus doInTransaction(TransactionStatus status) {
|
374 | 375 |
|
375 | 376 | RepeatStatus result = RepeatStatus.CONTINUABLE;
|
376 | 377 |
|
377 |
| - StepContribution contribution = stepExecution.createStepContribution(); |
| 378 | + final StepContribution contribution = stepExecution.createStepContribution(); |
378 | 379 |
|
379 | 380 | chunkListener.beforeChunk(chunkContext);
|
380 | 381 |
|
@@ -444,7 +445,7 @@ public RepeatStatus doInTransaction(TransactionStatus status) {
|
444 | 445 | catch (Exception e) {
|
445 | 446 | // If we get to here there was a problem saving the step
|
446 | 447 | // execution and we have to fail.
|
447 |
| - String msg = "JobRepository failure forcing rollback"; |
| 448 | + final String msg = "JobRepository failure forcing rollback"; |
448 | 449 | logger.error(msg, e);
|
449 | 450 | throw new FatalStepExecutionException(msg, e);
|
450 | 451 | }
|
@@ -483,7 +484,7 @@ private void rollback(StepExecution stepExecution) {
|
483 | 484 | }
|
484 | 485 | }
|
485 | 486 |
|
486 |
| - private void copy(final StepExecution source, final StepExecution target) { |
| 487 | + private static void copy(final StepExecution source, final StepExecution target) { |
487 | 488 | target.setVersion(source.getVersion());
|
488 | 489 | target.setWriteCount(source.getWriteCount());
|
489 | 490 | target.setFilterCount(source.getFilterCount());
|
|
0 commit comments