Java high-level REST client : minor fixes (#28467)

Corrected method name and a parameter name
This commit is contained in:
olcbean 2018-02-01 11:50:43 +01:00 committed by Luca Cavanna
parent ecb1d07d00
commit 344db6c0b1
2 changed files with 3 additions and 3 deletions

View File

@ -137,9 +137,9 @@ public final class IndicesClient {
* "https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-aliases.html">
* Index Aliases API on elastic.co</a>
*/
public void updateAliasesAsync(IndicesAliasesRequest indicesAliasesRequestRequest, ActionListener<IndicesAliasesResponse> listener,
public void updateAliasesAsync(IndicesAliasesRequest indicesAliasesRequest, ActionListener<IndicesAliasesResponse> listener,
Header... headers) {
restHighLevelClient.performRequestAsyncAndParseEntity(indicesAliasesRequestRequest, Request::updateAliases,
restHighLevelClient.performRequestAsyncAndParseEntity(indicesAliasesRequest, Request::updateAliases,
IndicesAliasesResponse::fromXContent, listener, emptySet(), headers);
}

View File

@ -483,7 +483,7 @@ public class IndicesClientDocumentationIT extends ESRestHighLevelClientTestCase
}
}
public void testIndicesAliases() throws IOException {
public void testUpdateAliases() throws IOException {
RestHighLevelClient client = highLevelClient();
{