File tree 11 files changed +9
-16
lines changed
main/java/org/springframework/batch/core
test/java/org/springframework/batch/core
spring-batch-infrastructure/src/main/java/org/springframework/batch/item/file
spring-batch-integration/src/main/java/org/springframework/batch/integration/partition
11 files changed +9
-16
lines changed Original file line number Diff line number Diff line change @@ -165,7 +165,6 @@ public String getName() {
165
165
* @param stepName name of the step
166
166
* @return the Step
167
167
*/
168
- @ Nullable
169
168
@ Override
170
169
public abstract Step getStep (String stepName );
171
170
Original file line number Diff line number Diff line change 29
29
import org .springframework .batch .core .StepExecution ;
30
30
import org .springframework .batch .core .repository .JobRestartException ;
31
31
import org .springframework .batch .core .step .StepLocator ;
32
- import org .springframework .lang .Nullable ;
33
32
34
33
/**
35
34
* Simple implementation of {@link Job} interface providing the ability to run a
40
39
* @author Lucas Ward
41
40
* @author Dave Syer
42
41
* @author Michael Minella
42
+ * @author Mahmoud Ben Hassine
43
43
*/
44
44
public class SimpleJob extends AbstractJob {
45
45
@@ -103,7 +103,6 @@ public void addStep(Step step) {
103
103
* @see
104
104
* org.springframework.batch.core.job.AbstractJob#getStep(java.lang.String)
105
105
*/
106
- @ Nullable
107
106
@ Override
108
107
public Step getStep (String stepName ) {
109
108
for (Step step : this .steps ) {
Original file line number Diff line number Diff line change 27
27
import org .springframework .batch .core .job .SimpleStepHandler ;
28
28
import org .springframework .batch .core .step .StepHolder ;
29
29
import org .springframework .batch .core .step .StepLocator ;
30
- import org .springframework .lang .Nullable ;
31
30
32
31
/**
33
32
* Implementation of the {@link Job} interface that allows for complex flows of
36
35
* namespace to abstract away details.
37
36
*
38
37
* @author Dave Syer
38
+ * @author Mahmoud Ben Hassine
39
39
* @since 2.0
40
40
*/
41
41
public class FlowJob extends AbstractJob {
@@ -74,7 +74,6 @@ public void setFlow(Flow flow) {
74
74
/**
75
75
* {@inheritDoc}
76
76
*/
77
- @ Nullable
78
77
@ Override
79
78
public Step getStep (String stepName ) {
80
79
if (!initialized ) {
Original file line number Diff line number Diff line change 27
27
import org .springframework .batch .core .step .NoSuchStepException ;
28
28
import org .springframework .batch .core .step .StepHolder ;
29
29
import org .springframework .batch .core .step .StepLocator ;
30
- import org .springframework .lang .Nullable ;
31
30
32
31
/**
33
32
* {@link State} implementation that delegates to a {@link FlowExecutor} to
34
33
* execute the specified {@link Step}.
35
34
*
36
35
* @author Dave Syer
37
36
* @author Michael Minella
37
+ * @author Mahmoud Ben Hassine
38
38
* @since 2.0
39
39
*/
40
40
public class StepState extends AbstractState implements StepLocator , StepHolder {
@@ -100,7 +100,6 @@ public Collection<String> getStepNames() {
100
100
/* (non-Javadoc)
101
101
* @see org.springframework.batch.core.step.StepLocator#getStep(java.lang.String)
102
102
*/
103
- @ Nullable
104
103
@ Override
105
104
public Step getStep (String stepName ) throws NoSuchStepException {
106
105
Step result = null ;
Original file line number Diff line number Diff line change 32
32
import org .springframework .batch .core .step .NoSuchStepException ;
33
33
import org .springframework .batch .core .step .StepLocator ;
34
34
import org .springframework .batch .item .ExecutionContext ;
35
- import org .springframework .lang .Nullable ;
36
35
37
36
/**
38
37
* An extension of the {@link PartitionStep} that provides additional semantics
39
38
* required by JSR-352. Specifically, this implementation adds the required
40
39
* lifecycle calls to the {@link PartitionReducer} if it is used.
41
40
*
42
41
* @author Michael Minella
42
+ * @author Mahmoud Ben Hassine
43
43
* @since 3.0
44
44
*/
45
45
public class PartitionStep extends org .springframework .batch .core .partition .support .PartitionStep implements StepLocator {
@@ -103,7 +103,6 @@ public Collection<String> getStepNames() {
103
103
/* (non-Javadoc)
104
104
* @see org.springframework.batch.core.step.StepLocator#getStep(java.lang.String)
105
105
*/
106
- @ Nullable
107
106
@ Override
108
107
public Step getStep (String stepName ) throws NoSuchStepException {
109
108
JsrPartitionHandler partitionHandler = (JsrPartitionHandler ) getPartitionHandler ();
Original file line number Diff line number Diff line change 42
42
/**
43
43
* @author Dave Syer
44
44
* @author Stephane Nicoll
45
+ * @author Mahmoud Ben Hassine
45
46
*/
46
47
public class DefaultJobLoaderTests {
47
48
@@ -266,7 +267,6 @@ public Collection<String> getStepNames() {
266
267
return Collections .emptyList ();
267
268
}
268
269
269
- @ Nullable
270
270
@ Override
271
271
public Step getStep (String stepName ) throws NoSuchStepException {
272
272
throw new NoSuchStepException ("Step [" + stepName + "] does not exist" );
Original file line number Diff line number Diff line change 42
42
43
43
/**
44
44
* @author Dave Syer
45
+ * @author Mahmoud Ben Hassine
45
46
*
46
47
*/
47
48
public class ExtendedAbstractJobTests {
@@ -215,7 +216,6 @@ public StubJob() {
215
216
protected void doExecute (JobExecution execution ) throws JobExecutionException {
216
217
}
217
218
218
- @ Nullable
219
219
@ Override
220
220
public Step getStep (String stepName ) {
221
221
return null ;
Original file line number Diff line number Diff line change 41
41
*
42
42
* @author Lucas Ward
43
43
* @author Dave Syer
44
+ * @author Mahmoud Ben Hassine
44
45
*/
45
46
public class JobSupport implements BeanNameAware , Job , StepLocator {
46
47
@@ -192,7 +193,6 @@ public Collection<String> getStepNames() {
192
193
return steps .keySet ();
193
194
}
194
195
195
- @ Nullable
196
196
@ Override
197
197
public Step getStep (String stepName ) throws NoSuchStepException {
198
198
final Step step = steps .get (stepName );
Original file line number Diff line number Diff line change @@ -453,7 +453,6 @@ class MockJob extends AbstractJob {
453
453
454
454
private TaskletStep taskletStep ;
455
455
456
- @ Nullable
457
456
@ Override
458
457
public Step getStep (String stepName ) {
459
458
return taskletStep ;
Original file line number Diff line number Diff line change @@ -192,7 +192,7 @@ protected T doRead() throws Exception {
192
192
* @return next line (skip comments).getCurrentResource
193
193
*/
194
194
@ Nullable
195
- protected String readLine () {
195
+ private String readLine () {
196
196
197
197
if (reader == null ) {
198
198
throw new ReaderNotOpenException ("Reader must be open before it can be read." );
Original file line number Diff line number Diff line change 9
9
import org .springframework .beans .factory .BeanFactory ;
10
10
import org .springframework .beans .factory .BeanFactoryAware ;
11
11
import org .springframework .beans .factory .ListableBeanFactory ;
12
- import org .springframework .lang .Nullable ;
13
12
import org .springframework .util .Assert ;
14
13
15
14
/**
16
15
* A {@link StepLocator} implementation that just looks in its enclosing bean
17
16
* factory for components of type {@link Step}.
18
17
*
19
18
* @author Dave Syer
19
+ * @author Mahmoud Ben Hassine
20
20
*
21
21
*/
22
22
public class BeanFactoryStepLocator implements StepLocator , BeanFactoryAware {
@@ -31,7 +31,6 @@ public void setBeanFactory(BeanFactory beanFactory) throws BeansException {
31
31
* Look up a bean with the provided name of type {@link Step}.
32
32
* @see StepLocator#getStep(String)
33
33
*/
34
- @ Nullable
35
34
public Step getStep (String stepName ) {
36
35
return beanFactory .getBean (stepName , Step .class );
37
36
}
You can’t perform that action at this time.
0 commit comments