diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/step/StepLocator.java b/spring-batch-core/src/main/java/org/springframework/batch/core/step/StepLocator.java index 02ddc80cd..1c5aba4f2 100644 --- a/spring-batch-core/src/main/java/org/springframework/batch/core/step/StepLocator.java +++ b/spring-batch-core/src/main/java/org/springframework/batch/core/step/StepLocator.java @@ -1,5 +1,5 @@ /* - * Copyright 2009-2018 the original author or authors. + * Copyright 2009 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. @@ -18,20 +18,17 @@ package org.springframework.batch.core.step; import java.util.Collection; import org.springframework.batch.core.Step; -import org.springframework.lang.Nullable; /** * Interface for locating a {@link Step} instance by name. * * @author Dave Syer - * @author Mahmoud Ben Hassine * */ public interface StepLocator { Collection getStepNames(); - - @Nullable - Step getStep(String stepName); + + Step getStep(String stepName) throws NoSuchStepException; }