Skip to content

Commit ebcd89b

Browse files
manick02cb-manick
authored andcommitted
Fix code review comments
- Make field name self explanatory Signed-off-by: cb-manick <[email protected]>
1 parent 55bc420 commit ebcd89b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

utils/src/main/java/io/serverlessworkflow/utils/WorkflowUtils.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121

2222
/** Provides common utility methods to provide most often needed answers from a workflow */
2323
public final class WorkflowUtils {
24-
private static int DEFAULT_STATE = 0;
24+
private static int DEFAULT_STARTING_STATE_POSITION = 0;
2525
/**
26-
* Gets State matching Start state.If start is not present returns first state otherwise Returns
26+
* Gets State matching Start state.If start is not present returns first state otherwise returns
2727
* null
2828
*
2929
* @param workflow workflow
@@ -36,7 +36,7 @@ public static State getStartingState(Workflow workflow) {
3636

3737
Start start = workflow.getStart();
3838
if (start == null) {
39-
return workflow.getStates().get(DEFAULT_STATE);
39+
return workflow.getStates().get(DEFAULT_STARTING_STATE_POSITION);
4040
} else {
4141
return workflow.getStates().stream()
4242
.filter(state -> state.getName().equals(start.getStateName()))

0 commit comments

Comments
 (0)