diff --git a/src/main/java/org/opensearch/flowframework/workflow/CreateIndexStep.java b/src/main/java/org/opensearch/flowframework/workflow/CreateIndexStep.java index 97c389c41..06f7ab44b 100644 --- a/src/main/java/org/opensearch/flowframework/workflow/CreateIndexStep.java +++ b/src/main/java/org/opensearch/flowframework/workflow/CreateIndexStep.java @@ -227,8 +227,7 @@ public static String getIndexMappings(String mapping) throws IOException { * @param newVersion new index mapping version * @param listener action listener, if update index is needed, will pass true to its onResponse method */ - @VisibleForTesting - protected void shouldUpdateIndex(String indexName, Integer newVersion, ActionListener listener) { + private void shouldUpdateIndex(String indexName, Integer newVersion, ActionListener listener) { IndexMetadata indexMetaData = clusterService.state().getMetadata().indices().get(indexName); if (indexMetaData == null) { listener.onResponse(Boolean.FALSE);