Adapt to core Strings method rename

This commit adapts a single usage of a method that was renamed in core.

Relates elastic/x-pack-elasticsearch#3265

Original commit: elastic/x-pack-elasticsearch@107c495d63
This commit is contained in:
Jason Tedor 2017-12-08 12:17:29 -05:00 committed by GitHub
parent 8a0e7f58b8
commit 27a3a80c07
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ public class RestWatcherStatsAction extends WatcherRestHandler {
@Override
protected RestChannelConsumer doPrepareRequest(final RestRequest restRequest, WatcherClient client) throws IOException {
Set<String> metrics = Strings.splitStringByCommaToSet(restRequest.param("metric", ""));
Set<String> metrics = Strings.tokenizeByCommaToSet(restRequest.param("metric", ""));
WatcherStatsRequest request = new WatcherStatsRequest();
if (metrics.contains("_all")) {