Skip to content

Commit a93e78b

Browse files
committed
Use step constants in factory
Signed-off-by: kokibas <[email protected]>
1 parent d348e3f commit a93e78b

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/main/java/org/opensearch/flowframework/workflow/WorkflowStepFactory.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
import org.opensearch.threadpool.ThreadPool;
2424
import org.opensearch.transport.client.Client;
2525

26-
import java.util.ArrayList;
2726
import java.util.Collection;
2827
import java.util.Collections;
2928
import java.util.HashMap;
@@ -132,8 +131,8 @@ public enum WorkflowSteps {
132131
/** Create Index Step */
133132
CREATE_INDEX(
134133
CreateIndexStep.NAME,
135-
new ArrayList<>(CreateIndexStep.REQUIRED_INPUTS),
136-
new ArrayList<>(CreateIndexStep.PROVIDED_OUTPUTS),
134+
CreateIndexStep.REQUIRED_INPUTS,
135+
CreateIndexStep.PROVIDED_OUTPUTS,
137136
Collections.emptyList(),
138137
null
139138
),
@@ -153,8 +152,8 @@ public enum WorkflowSteps {
153152
/** Create Connector Step */
154153
CREATE_CONNECTOR(
155154
CreateConnectorStep.NAME,
156-
new ArrayList<>(CreateConnectorStep.REQUIRED_INPUTS),
157-
new ArrayList<>(CreateConnectorStep.PROVIDED_OUTPUTS),
155+
CreateConnectorStep.REQUIRED_INPUTS,
156+
CreateConnectorStep.PROVIDED_OUTPUTS,
158157
List.of(OPENSEARCH_ML),
159158
TimeValue.timeValueSeconds(60)
160159
),

0 commit comments

Comments
 (0)