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; return this;
} }
public boolean getLocal() { public boolean isLocal() {
return this.local; return this.local;
} }

View File

@ -51,7 +51,7 @@ public class RestClusterHealthAction extends BaseRestHandler {
@Override @Override
public void handleRequest(final RestRequest request, final RestChannel channel) { public void handleRequest(final RestRequest request, final RestChannel channel) {
ClusterHealthRequest clusterHealthRequest = clusterHealthRequest(RestActions.splitIndices(request.param("index"))); 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); clusterHealthRequest.setListenerThreaded(false);
int level = 0; int level = 0;
try { try {