Polish a7092a21e4
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user