mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-29 19:38:29 +00:00
REST high-level Client: add missing final modifiers (#28572)
A couple of methods in RestHighLevelClient were supposed to be final but the modifier was forgotten.
This commit is contained in:
parent
86fd48e5f5
commit
cb7159d4c9
@ -222,7 +222,7 @@ public class RestHighLevelClient implements Closeable {
|
||||
/**
|
||||
* Returns the low-level client that the current high-level client instance is using to perform requests
|
||||
*/
|
||||
public RestClient getLowLevelClient() {
|
||||
public final RestClient getLowLevelClient() {
|
||||
return client;
|
||||
}
|
||||
|
||||
@ -306,7 +306,7 @@ public class RestHighLevelClient implements Closeable {
|
||||
*
|
||||
* See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-multi-get.html">Multi Get API on elastic.co</a>
|
||||
*/
|
||||
public void multiGetAsync(MultiGetRequest multiGetRequest, ActionListener<MultiGetResponse> listener, Header... headers) {
|
||||
public final void multiGetAsync(MultiGetRequest multiGetRequest, ActionListener<MultiGetResponse> listener, Header... headers) {
|
||||
performRequestAsyncAndParseEntity(multiGetRequest, Request::multiGet, MultiGetResponse::fromXContent, listener,
|
||||
singleton(404), headers);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user