Skip to content

Commit 4ec227c

Browse files
committed
Revert 276acd1
This commit reverts the change to `StepLocator` as it introduces an inconsistency with `JobLocator` (one returns null and the other throws an exception when no step/job is found with the given name).
1 parent 6481ae6 commit 4ec227c

File tree

1 file changed

+3
-6
lines changed
  • spring-batch-core/src/main/java/org/springframework/batch/core/step

1 file changed

+3
-6
lines changed

spring-batch-core/src/main/java/org/springframework/batch/core/step/StepLocator.java

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2009-2018 the original author or authors.
2+
* Copyright 2009 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -18,20 +18,17 @@
1818
import java.util.Collection;
1919

2020
import org.springframework.batch.core.Step;
21-
import org.springframework.lang.Nullable;
2221

2322
/**
2423
* Interface for locating a {@link Step} instance by name.
2524
*
2625
* @author Dave Syer
27-
* @author Mahmoud Ben Hassine
2826
*
2927
*/
3028
public interface StepLocator {
3129

3230
Collection<String> getStepNames();
33-
34-
@Nullable
35-
Step getStep(String stepName);
31+
32+
Step getStep(String stepName) throws NoSuchStepException;
3633

3734
}

0 commit comments

Comments
 (0)