Skip to content

Commit 16c9ba8

Browse files
author
Tianli Feng
committed
Move deprecated masterNodeTimeout() into ClusterManagerNodeRequest class
Signed-off-by: Tianli Feng <[email protected]>
1 parent 237031d commit 16c9ba8

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

server/src/main/java/org/opensearch/action/support/clustermanager/ClusterManagerNodeRequest.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,4 +82,14 @@ public final Request clusterManagerNodeTimeout(String timeout) {
8282
public final TimeValue clusterManagerNodeTimeout() {
8383
return this.clusterManagerNodeTimeout;
8484
}
85+
86+
/**
87+
* Preserve the method so that classes implements AcknowledgedRequest don't need to override it for backwards compatibility.}
88+
*
89+
* @deprecated As of 2.1, because supporting inclusive language, replaced by {@link #clusterManagerNodeTimeout()}
90+
*/
91+
@Deprecated
92+
public final TimeValue masterNodeTimeout() {
93+
return this.clusterManagerNodeTimeout;
94+
}
8595
}

server/src/main/java/org/opensearch/action/support/master/MasterNodeRequest.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,4 @@ public final Request masterNodeTimeout(TimeValue timeout) {
7474
public final Request masterNodeTimeout(String timeout) {
7575
return masterNodeTimeout(TimeValue.parseTimeValue(timeout, null, getClass().getSimpleName() + ".masterNodeTimeout"));
7676
}
77-
78-
@Deprecated
79-
public final TimeValue masterNodeTimeout() {
80-
return this.masterNodeTimeout;
81-
}
8277
}

0 commit comments

Comments
 (0)