diff --git a/server/src/main/java/org/opensearch/action/support/clustermanager/ClusterManagerNodeRequest.java b/server/src/main/java/org/opensearch/action/support/clustermanager/ClusterManagerNodeRequest.java index 993e821ba9373..44984eafd08d2 100644 --- a/server/src/main/java/org/opensearch/action/support/clustermanager/ClusterManagerNodeRequest.java +++ b/server/src/main/java/org/opensearch/action/support/clustermanager/ClusterManagerNodeRequest.java @@ -85,13 +85,10 @@ public final TimeValue clusterManagerNodeTimeout() { return this.clusterManagerNodeTimeout; } - /** - * Preserve the method so that classes implements AcknowledgedRequest don't need to override it for backwards compatibility.} - * - * @deprecated As of 2.1, because supporting inclusive language, replaced by {@link #clusterManagerNodeTimeout()} - */ + // Preserve the method so that classes implements AcknowledgedRequest don't need to override it for backwards compatibility. + /** @deprecated As of 2.1, because supporting inclusive language, replaced by {@link #clusterManagerNodeTimeout()} */ @Deprecated public final TimeValue masterNodeTimeout() { - return this.clusterManagerNodeTimeout; + return clusterManagerNodeTimeout(); } } diff --git a/server/src/main/java/org/opensearch/action/support/clustermanager/TransportClusterManagerNodeAction.java b/server/src/main/java/org/opensearch/action/support/clustermanager/TransportClusterManagerNodeAction.java index ca2bf9c828dc1..2197e7b8dd044 100644 --- a/server/src/main/java/org/opensearch/action/support/clustermanager/TransportClusterManagerNodeAction.java +++ b/server/src/main/java/org/opensearch/action/support/clustermanager/TransportClusterManagerNodeAction.java @@ -120,12 +120,9 @@ protected TransportClusterManagerNodeAction( protected abstract void clusterManagerOperation(Request request, ClusterState state, ActionListener listener) throws Exception; - /** - * Preserve the method so that org.opensearch.action.support.master.info.TransportClusterInfoAction class - * can override masterOperation() for backwards compatibility.} - * - * @deprecated As of 2.1, because supporting inclusive language, replaced by {@link #clusterManagerOperation(ClusterManagerNodeRequest, ClusterState, ActionListener)} - */ + // Preserve the method so that o.o.action.support.master.info.TransportClusterInfoAction class + // can override masterOperation() for backwards compatibility. + /** @deprecated As of 2.1, because supporting inclusive language, replaced by {@link #clusterManagerOperation(ClusterManagerNodeRequest, ClusterState, ActionListener)} */ @Deprecated protected void masterOperation(Request request, ClusterState state, ActionListener listener) throws Exception { clusterManagerOperation(request, state, listener);