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

@@ -9,7 +9,6 @@ import org.springframework.beans.BeansException;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.BeanFactoryAware;
import org.springframework.beans.factory.ListableBeanFactory;
import org.springframework.lang.Nullable;
import org.springframework.util.Assert;
/**
@@ -17,6 +16,7 @@ import org.springframework.util.Assert;
* factory for components of type {@link Step}.
*
* @author Dave Syer
* @author Mahmoud Ben Hassine
*
*/
public class BeanFactoryStepLocator implements StepLocator, BeanFactoryAware {
@@ -31,7 +31,6 @@ public class BeanFactoryStepLocator implements StepLocator, BeanFactoryAware {
* Look up a bean with the provided name of type {@link Step}.
* @see StepLocator#getStep(String)
*/
@Nullable
public Step getStep(String stepName) {
return beanFactory.getBean(stepName, Step.class);
}