fix boolean to is from get

relates to #2657
This commit is contained in:
Shay Banon 2013-02-22 12:45:47 +01:00
parent ec3492c67c
commit a234e45b59
2 changed files with 2 additions and 2 deletions

View File

@ -134,7 +134,7 @@ public class ClusterHealthRequest extends MasterNodeOperationRequest<ClusterHeal
return this;
}
public boolean getLocal() {
public boolean isLocal() {
return this.local;
}

View File

@ -51,7 +51,7 @@ public class RestClusterHealthAction extends BaseRestHandler {
@Override
public void handleRequest(final RestRequest request, final RestChannel channel) {
ClusterHealthRequest clusterHealthRequest = clusterHealthRequest(RestActions.splitIndices(request.param("index")));
clusterHealthRequest.setLocal(request.paramAsBoolean("local", clusterHealthRequest.getLocal()));
clusterHealthRequest.setLocal(request.paramAsBoolean("local", clusterHealthRequest.isLocal()));
clusterHealthRequest.setListenerThreaded(false);
int level = 0;
try {