diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/job/flow/support/SimpleFlow.java b/spring-batch-core/src/main/java/org/springframework/batch/core/job/flow/support/SimpleFlow.java index d14bbb61c..5d3d32b23 100644 --- a/spring-batch-core/src/main/java/org/springframework/batch/core/job/flow/support/SimpleFlow.java +++ b/spring-batch-core/src/main/java/org/springframework/batch/core/job/flow/support/SimpleFlow.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2014 the original author or authors. + * Copyright 2006-2021 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. @@ -48,6 +48,7 @@ import org.springframework.beans.factory.InitializingBean; * * @author Dave Syer * @author Michael Minella + * @author Mahmoud Ben Hassine * @since 2.0 */ public class SimpleFlow implements Flow, InitializingBean { @@ -259,10 +260,6 @@ public class SimpleFlow implements Flow, InitializingBean { return continued; } - private boolean stateNameEndsWithStepName(State state, StepExecution stepExecution) { - return !(stepExecution == null || state == null) && !state.getName().endsWith(stepExecution.getStepName()); - } - /** * Analyse the transitions provided and generate all the information needed * to execute the flow.