Skip to content

Commit

Permalink
Add author and refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
uyw4687 committed Jul 14, 2024
1 parent 89661ae commit 1e821e6
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
* @author Michael Minella
* @author Will Schipp
* @author Mahmoud Ben Hassine
* @author Seonkyo Ok
*/
public class TaskletStep extends AbstractStep {

Expand Down Expand Up @@ -239,7 +240,7 @@ protected void doExecute(StepExecution stepExecution) throws Exception {
public RepeatStatus doInChunkContext(RepeatContext repeatContext, ChunkContext chunkContext)
throws Exception {

StepExecution stepExecution = chunkContext.getStepContext().getStepExecution();
final StepExecution stepExecution = chunkContext.getStepContext().getStepExecution();

// Before starting a new transaction, check for
// interruption.
Expand Down Expand Up @@ -374,7 +375,7 @@ public RepeatStatus doInTransaction(TransactionStatus status) {

RepeatStatus result = RepeatStatus.CONTINUABLE;

StepContribution contribution = stepExecution.createStepContribution();
final StepContribution contribution = stepExecution.createStepContribution();

chunkListener.beforeChunk(chunkContext);

Expand Down Expand Up @@ -444,7 +445,7 @@ public RepeatStatus doInTransaction(TransactionStatus status) {
catch (Exception e) {
// If we get to here there was a problem saving the step
// execution and we have to fail.
String msg = "JobRepository failure forcing rollback";
final String msg = "JobRepository failure forcing rollback";
logger.error(msg, e);
throw new FatalStepExecutionException(msg, e);
}
Expand Down Expand Up @@ -483,7 +484,7 @@ private void rollback(StepExecution stepExecution) {
}
}

private void copy(final StepExecution source, final StepExecution target) {
private static void copy(final StepExecution source, final StepExecution target) {
target.setVersion(source.getVersion());
target.setWriteCount(source.getWriteCount());
target.setFilterCount(source.getFilterCount());
Expand Down

0 comments on commit 1e821e6

Please sign in to comment.