Skip to content

Commit 7067dcb

Browse files
committed
Remove unused private method in SimpleFlow
1 parent c58677e commit 7067dcb

File tree

1 file changed

+2
-5
lines changed
  • spring-batch-core/src/main/java/org/springframework/batch/core/job/flow/support

1 file changed

+2
-5
lines changed

spring-batch-core/src/main/java/org/springframework/batch/core/job/flow/support/SimpleFlow.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2006-2014 the original author or authors.
2+
* Copyright 2006-2021 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.
@@ -48,6 +48,7 @@
4848
*
4949
* @author Dave Syer
5050
* @author Michael Minella
51+
* @author Mahmoud Ben Hassine
5152
* @since 2.0
5253
*/
5354
public class SimpleFlow implements Flow, InitializingBean {
@@ -259,10 +260,6 @@ protected boolean isFlowContinued(State state, FlowExecutionStatus status, StepE
259260
return continued;
260261
}
261262

262-
private boolean stateNameEndsWithStepName(State state, StepExecution stepExecution) {
263-
return !(stepExecution == null || state == null) && !state.getName().endsWith(stepExecution.getStepName());
264-
}
265-
266263
/**
267264
* Analyse the transitions provided and generate all the information needed
268265
* to execute the flow.

0 commit comments

Comments
 (0)