From c2594c0d3be850e6e3c66b5aeb26208e5f305721 Mon Sep 17 00:00:00 2001 From: javanna Date: Mon, 11 Aug 2014 17:52:48 +0200 Subject: [PATCH] Internal: adjusted visibility of GetRequest members (from protected to private) and resolved warning --- .../java/org/elasticsearch/action/get/GetRequest.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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);