diff --git a/src/main/java/org/elasticsearch/action/get/GetRequest.java b/src/main/java/org/elasticsearch/action/get/GetRequest.java index 8ed7ae5ca8b..9f7b1df93e1 100644 --- a/src/main/java/org/elasticsearch/action/get/GetRequest.java +++ b/src/main/java/org/elasticsearch/action/get/GetRequest.java @@ -45,10 +45,10 @@ import java.io.IOException; */ public class GetRequest extends SingleShardOperationRequest { - 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 { } if (realtime == null) { out.writeByte((byte) -1); - } else if (realtime == false) { + } else if (!realtime) { out.writeByte((byte) 0); } else { out.writeByte((byte) 1);