From 8034a3e936f2856cfd5df27a6700c39bd3638408 Mon Sep 17 00:00:00 2001 From: Surya Sashank Nistala Date: Wed, 13 Mar 2024 12:32:42 -0700 Subject: [PATCH] fix compilation errors Signed-off-by: Surya Sashank Nistala --- .../main/kotlin/org/opensearch/alerting/core/lock/LockModel.kt | 2 +- .../kotlin/org/opensearch/alerting/core/lock/LockService.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/kotlin/org/opensearch/alerting/core/lock/LockModel.kt b/core/src/main/kotlin/org/opensearch/alerting/core/lock/LockModel.kt index 706bd0987..91d144013 100644 --- a/core/src/main/kotlin/org/opensearch/alerting/core/lock/LockModel.kt +++ b/core/src/main/kotlin/org/opensearch/alerting/core/lock/LockModel.kt @@ -5,11 +5,11 @@ package org.opensearch.alerting.core.lock +import org.opensearch.common.xcontent.XContentParserUtils import org.opensearch.core.xcontent.ToXContent import org.opensearch.core.xcontent.ToXContentObject import org.opensearch.core.xcontent.XContentBuilder import org.opensearch.core.xcontent.XContentParser -import org.opensearch.core.xcontent.XContentParserUtils import org.opensearch.index.seqno.SequenceNumbers import java.io.IOException import java.time.Instant diff --git a/core/src/main/kotlin/org/opensearch/alerting/core/lock/LockService.kt b/core/src/main/kotlin/org/opensearch/alerting/core/lock/LockService.kt index 35618e156..03268eb83 100644 --- a/core/src/main/kotlin/org/opensearch/alerting/core/lock/LockService.kt +++ b/core/src/main/kotlin/org/opensearch/alerting/core/lock/LockService.kt @@ -2,6 +2,7 @@ package org.opensearch.alerting.core.lock import org.apache.logging.log4j.LogManager import org.opensearch.ResourceAlreadyExistsException +import org.opensearch.action.ActionListener import org.opensearch.action.DocWriteResponse import org.opensearch.action.admin.indices.create.CreateIndexRequest import org.opensearch.action.admin.indices.create.CreateIndexResponse @@ -20,7 +21,6 @@ import org.opensearch.common.xcontent.LoggingDeprecationHandler import org.opensearch.common.xcontent.XContentFactory import org.opensearch.common.xcontent.XContentType import org.opensearch.commons.alerting.model.ScheduledJob -import org.opensearch.core.action.ActionListener import org.opensearch.core.xcontent.NamedXContentRegistry import org.opensearch.core.xcontent.ToXContent import org.opensearch.index.IndexNotFoundException