This commit is contained in:
Mahmoud Ben Hassine
2019-09-17 17:06:44 +02:00
parent a7092a21e4
commit 2306141826
11 changed files with 9 additions and 16 deletions

View File

@@ -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");

View File

@@ -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;

View File

@@ -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);

View File

@@ -453,7 +453,6 @@ public class SimpleJobOperatorTests {
private TaskletStep taskletStep;
@Nullable
@Override
public Step getStep(String stepName) {
return taskletStep;