Polish a7092a21e4
This commit is contained in:
@@ -42,6 +42,7 @@ import org.springframework.test.util.ReflectionTestUtils;
|
||||
/**
|
||||
* @author Dave Syer
|
||||
* @author Stephane Nicoll
|
||||
* @author Mahmoud Ben Hassine
|
||||
*/
|
||||
public class DefaultJobLoaderTests {
|
||||
|
||||
@@ -266,7 +267,6 @@ public class DefaultJobLoaderTests {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
public Step getStep(String stepName) throws NoSuchStepException {
|
||||
throw new NoSuchStepException("Step [" + stepName + "] does not exist");
|
||||
|
||||
@@ -42,6 +42,7 @@ import static org.junit.Assert.fail;
|
||||
|
||||
/**
|
||||
* @author Dave Syer
|
||||
* @author Mahmoud Ben Hassine
|
||||
*
|
||||
*/
|
||||
public class ExtendedAbstractJobTests {
|
||||
@@ -215,7 +216,6 @@ public class ExtendedAbstractJobTests {
|
||||
protected void doExecute(JobExecution execution) throws JobExecutionException {
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
public Step getStep(String stepName) {
|
||||
return null;
|
||||
|
||||
@@ -41,6 +41,7 @@ import org.springframework.util.ClassUtils;
|
||||
*
|
||||
* @author Lucas Ward
|
||||
* @author Dave Syer
|
||||
* @author Mahmoud Ben Hassine
|
||||
*/
|
||||
public class JobSupport implements BeanNameAware, Job, StepLocator {
|
||||
|
||||
@@ -192,7 +193,6 @@ public class JobSupport implements BeanNameAware, Job, StepLocator {
|
||||
return steps.keySet();
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
public Step getStep(String stepName) throws NoSuchStepException {
|
||||
final Step step = steps.get(stepName);
|
||||
|
||||
@@ -453,7 +453,6 @@ public class SimpleJobOperatorTests {
|
||||
|
||||
private TaskletStep taskletStep;
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
public Step getStep(String stepName) {
|
||||
return taskletStep;
|
||||
|
||||
Reference in New Issue
Block a user