Skip to content

Commit

Permalink
Correct a deprecated method implementation
Browse files Browse the repository at this point in the history
Signed-off-by: Tianli Feng <[email protected]>
  • Loading branch information
Tianli Feng committed Jun 21, 2022
1 parent 8fc134d commit 6c34ae8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,9 @@ protected TransportClusterManagerNodeAction(
protected abstract void clusterManagerOperation(Request request, ClusterState state, ActionListener<Response> 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<Response> listener) throws Exception {
clusterManagerOperation(request, state, listener);
Expand Down

0 comments on commit 6c34ae8

Please sign in to comment.