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:
Luca Cavanna 2018-02-08 17:14:20 +01:00 committed by GitHub
parent 86fd48e5f5
commit cb7159d4c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}