Revision 53822
Added by Claudio Atzori over 5 years ago
modules/dnet-index-solr-common/branches/solr75/src/main/java/eu/dnetlib/functionality/index/utils/ZkServers.java | ||
---|---|---|
24 | 24 |
final Optional<String> chRoot = Optional.of(StringUtils.substringAfterLast(zkUrl, "/")); |
25 | 25 |
if (chRoot.isPresent() && StringUtils.isNotBlank(chRoot.get())) { |
26 | 26 |
log.debug(String.format("found zk chroot %s", chRoot)); |
27 |
urls = zkUrl.replaceAll("/" + chRoot, "");
|
|
27 |
urls = zkUrl.replace("/" + chRoot, ""); |
|
28 | 28 |
} |
29 | 29 |
|
30 | 30 |
final List<String> urlList = Lists.newArrayList(Splitter.on(",").omitEmptyStrings().split(urls)); |
Also available in: Unified diff
replace literal