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

This commit is contained in:
Christine Poerschke 2017-07-12 17:14:18 +01:00
parent 00b5930cc9
commit e730ced5ef
1 changed files with 2 additions and 5 deletions

View File

@ -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 */