diff --git a/ml-algorithms/src/main/java/org/opensearch/ml/engine/algorithms/remote/HttpJsonConnectorExecutor.java b/ml-algorithms/src/main/java/org/opensearch/ml/engine/algorithms/remote/HttpJsonConnectorExecutor.java index 816e0528dc..aff5208502 100644 --- a/ml-algorithms/src/main/java/org/opensearch/ml/engine/algorithms/remote/HttpJsonConnectorExecutor.java +++ b/ml-algorithms/src/main/java/org/opensearch/ml/engine/algorithms/remote/HttpJsonConnectorExecutor.java @@ -126,8 +126,7 @@ public void invokeRemoteModel( } } - @VisibleForTesting - protected void validateHttpClientParameters(Map parameters) throws Exception { + private void validateHttpClientParameters(Map parameters) throws Exception { String endpoint = connector.getPredictEndpoint(parameters); URL url = new URL(endpoint); String protocol = url.getProtocol();