From 3c59a70fb80956a2bc36767aaa9ae3a40e604ccc Mon Sep 17 00:00:00 2001 From: Sicheng Song Date: Thu, 21 Sep 2023 00:24:52 +0000 Subject: [PATCH] Fix compile Signed-off-by: Sicheng Song --- .../ml/common/transport/model/MLUpdateModelInput.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/src/main/java/org/opensearch/ml/common/transport/model/MLUpdateModelInput.java b/common/src/main/java/org/opensearch/ml/common/transport/model/MLUpdateModelInput.java index e1a1e4fe1a..d898135d8b 100644 --- a/common/src/main/java/org/opensearch/ml/common/transport/model/MLUpdateModelInput.java +++ b/common/src/main/java/org/opensearch/ml/common/transport/model/MLUpdateModelInput.java @@ -43,7 +43,7 @@ public class MLUpdateModelInput implements ToXContentObject, Writeable { private String connectorId; @Builder(toBuilder = true) - public MLUpdateModelInput(String modelId, String description, String name, String modelGroupId, MLModelConfig modelConfig, Map connector, String connectorId) { + public MLUpdateModelInput(String modelId, String description, String name, String modelGroupId, MLModelConfig modelConfig, String connectorId) { this.modelId = modelId; this.description = description; this.name = name; @@ -102,7 +102,7 @@ public void writeTo(StreamOutput out) throws IOException { } public static MLUpdateModelInput parse(XContentParser parser, String modelId) throws IOException { - MLUpdateModelInput input = new MLUpdateModelInput(modelId, null, null, null, null, null, null); + MLUpdateModelInput input = new MLUpdateModelInput(modelId, null, null, null, null, null); ensureExpectedToken(XContentParser.Token.START_OBJECT, parser.currentToken(), parser); while (parser.nextToken() != XContentParser.Token.END_OBJECT) { String fieldName = parser.currentName();