Internal: adjusted visibility of GetRequest members (from protected to private) and resolved warning

This commit is contained in:
javanna 2014-08-11 17:52:48 +02:00 committed by Luca Cavanna
parent 2801d06aee
commit c2594c0d3b
1 changed files with 5 additions and 5 deletions

View File

@ -45,10 +45,10 @@ import java.io.IOException;
*/ */
public class GetRequest extends SingleShardOperationRequest<GetRequest> { public class GetRequest extends SingleShardOperationRequest<GetRequest> {
protected String type; private String type;
protected String id; private String id;
protected String routing; private String routing;
protected String preference; private String preference;
private String[] fields; private String[] fields;
@ -305,7 +305,7 @@ public class GetRequest extends SingleShardOperationRequest<GetRequest> {
} }
if (realtime == null) { if (realtime == null) {
out.writeByte((byte) -1); out.writeByte((byte) -1);
} else if (realtime == false) { } else if (!realtime) {
out.writeByte((byte) 0); out.writeByte((byte) 0);
} else { } else {
out.writeByte((byte) 1); out.writeByte((byte) 1);