From af794002856b770b6a099960b46278a268599c1f Mon Sep 17 00:00:00 2001 From: Suraj Singh Date: Tue, 22 Feb 2022 11:25:01 -0800 Subject: [PATCH] Address review comments Signed-off-by: Suraj Singh --- .../opensearch/rest/action/document/RestDeleteAction.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/server/src/main/java/org/opensearch/rest/action/document/RestDeleteAction.java b/server/src/main/java/org/opensearch/rest/action/document/RestDeleteAction.java index 716a14182fee2..a7331ec882ad2 100644 --- a/server/src/main/java/org/opensearch/rest/action/document/RestDeleteAction.java +++ b/server/src/main/java/org/opensearch/rest/action/document/RestDeleteAction.java @@ -35,7 +35,6 @@ import org.opensearch.action.delete.DeleteRequest; import org.opensearch.action.support.ActiveShardCount; import org.opensearch.client.node.NodeClient; -import org.opensearch.common.logging.DeprecationLogger; import org.opensearch.index.VersionType; import org.opensearch.rest.BaseRestHandler; import org.opensearch.rest.RestRequest; @@ -50,13 +49,10 @@ import static org.opensearch.rest.RestRequest.Method.DELETE; public class RestDeleteAction extends BaseRestHandler { - private static final DeprecationLogger deprecationLogger = DeprecationLogger.getLogger(RestDeleteAction.class); - public static final String TYPES_DEPRECATION_MESSAGE = "[types removal] Specifying types in " - + "document index requests is deprecated, use the /{index}/_doc/{id} endpoint instead."; @Override public List routes() { - return unmodifiableList(asList(new Route(DELETE, "/{index}/_doc/{id}"))); + return unmodifiableList(asList(new Route(DELETE, "/{index}/_doc/{id}"), new Route(DELETE, "/{index}/{id}"))); } @Override