diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/partition/support/AbstractPartitionHandler.java b/spring-batch-core/src/main/java/org/springframework/batch/core/partition/support/AbstractPartitionHandler.java index 13e900954..f745d6ea0 100644 --- a/spring-batch-core/src/main/java/org/springframework/batch/core/partition/support/AbstractPartitionHandler.java +++ b/spring-batch-core/src/main/java/org/springframework/batch/core/partition/support/AbstractPartitionHandler.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2007 the original author or authors. + * Copyright 2006-2012 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,13 +15,13 @@ */ package org.springframework.batch.core.partition.support; +import java.util.Collection; +import java.util.Set; + import org.springframework.batch.core.StepExecution; import org.springframework.batch.core.partition.PartitionHandler; import org.springframework.batch.core.partition.StepExecutionSplitter; -import java.util.Collection; -import java.util.Set; - /** * Base {@link PartitionHandler} implementation providing common base * features. Subclasses are expected to implement only the @@ -50,7 +50,9 @@ public abstract class AbstractPartitionHandler implements PartitionHandler { protected abstract Set doHandle(StepExecution masterStepExecution, Set partitionStepExecutions) throws Exception; - + /** + * @see PartitionHandler#handle(StepExecutionSplitter, StepExecution) + */ public Collection handle(final StepExecutionSplitter stepSplitter, final StepExecution masterStepExecution) throws Exception { final Set stepExecutions = stepSplitter.split(masterStepExecution, gridSize); diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/partition/support/TaskExecutorPartitionHandler.java b/spring-batch-core/src/main/java/org/springframework/batch/core/partition/support/TaskExecutorPartitionHandler.java index cb40e5f1c..be486025e 100644 --- a/spring-batch-core/src/main/java/org/springframework/batch/core/partition/support/TaskExecutorPartitionHandler.java +++ b/spring-batch-core/src/main/java/org/springframework/batch/core/partition/support/TaskExecutorPartitionHandler.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2007 the original author or authors. + * Copyright 2006-2012 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -106,9 +106,9 @@ public class TaskExecutorPartitionHandler extends AbstractPartitionHandler imple ExitStatus exitStatus = ExitStatus.FAILED .addExitDescription("TaskExecutor rejected the task for this step."); /* - * Set the status in case the caller is tracking it through the - * JobExecution. - */ + * Set the status in case the caller is tracking it through the + * JobExecution. + */ stepExecution.setStatus(BatchStatus.FAILED); stepExecution.setExitStatus(exitStatus); result.add(stepExecution);