You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by cp...@apache.org on 2017/07/12 16:46:14 UTC

lucene-solr:branch_7x: Consistently use ZkStateReader.CONSTANT in Replica.java (instead of mix of ZkStateReader.CONSTANT and import ZkStateReader.CONSTANT).

Repository: lucene-solr
Updated Branches:
  refs/heads/branch_7x 9b9eb2c28 -> eee4e9231


Consistently use ZkStateReader.CONSTANT in Replica.java (instead of mix of ZkStateReader.CONSTANT and import ZkStateReader.CONSTANT).


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/eee4e923
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/eee4e923
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/eee4e923

Branch: refs/heads/branch_7x
Commit: eee4e92319c0fa57b6a1f90ba41e5ebe847ed8d2
Parents: 9b9eb2c
Author: Christine Poerschke <cp...@apache.org>
Authored: Wed Jul 12 17:14:18 2017 +0100
Committer: Christine Poerschke <cp...@apache.org>
Committed: Wed Jul 12 17:29:23 2017 +0100

----------------------------------------------------------------------
 solr/solrj/src/java/org/apache/solr/common/cloud/Replica.java | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/eee4e923/solr/solrj/src/java/org/apache/solr/common/cloud/Replica.java
----------------------------------------------------------------------
diff --git a/solr/solrj/src/java/org/apache/solr/common/cloud/Replica.java b/solr/solrj/src/java/org/apache/solr/common/cloud/Replica.java
index b7655be..7828393 100644
--- a/solr/solrj/src/java/org/apache/solr/common/cloud/Replica.java
+++ b/solr/solrj/src/java/org/apache/solr/common/cloud/Replica.java
@@ -22,9 +22,6 @@ import java.util.Set;
 
 import org.noggit.JSONUtil;
 
-import static org.apache.solr.common.cloud.ZkStateReader.BASE_URL_PROP;
-import static org.apache.solr.common.cloud.ZkStateReader.CORE_NAME_PROP;
-
 public class Replica extends ZkNodeProps {
   
   /**
@@ -134,14 +131,14 @@ public class Replica extends ZkNodeProps {
   }
 
   public String getCoreUrl() {
-    return ZkCoreNodeProps.getCoreUrl(getStr(BASE_URL_PROP), getStr(CORE_NAME_PROP));
+    return ZkCoreNodeProps.getCoreUrl(getStr(ZkStateReader.BASE_URL_PROP), getStr(ZkStateReader.CORE_NAME_PROP));
   }
   public String getBaseUrl(){
     return getStr(ZkStateReader.BASE_URL_PROP);
   }
 
   public String getCoreName() {
-    return getStr(CORE_NAME_PROP);
+    return getStr(ZkStateReader.CORE_NAME_PROP);
   }
 
   /** The name of the node this replica resides on */