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> {
protected String type;
protected String id;
protected String routing;
protected String preference;
private String type;
private String id;
private String routing;
private String preference;
private String[] fields;
@ -305,7 +305,7 @@ public class GetRequest extends SingleShardOperationRequest<GetRequest> {
}
if (realtime == null) {
out.writeByte((byte) -1);
} else if (realtime == false) {
} else if (!realtime) {
out.writeByte((byte) 0);
} else {
out.writeByte((byte) 1);