From 27a3a80c07ffc343e03171c901b6e4a68a2752aa Mon Sep 17 00:00:00 2001 From: Jason Tedor Date: Fri, 8 Dec 2017 12:17:29 -0500 Subject: [PATCH] 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@107c495d63266036950cf70b4cecb04c67d4472a --- .../xpack/watcher/rest/action/RestWatcherStatsAction.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/src/main/java/org/elasticsearch/xpack/watcher/rest/action/RestWatcherStatsAction.java b/plugin/src/main/java/org/elasticsearch/xpack/watcher/rest/action/RestWatcherStatsAction.java index 6cbff4e7753..0f99cc8960c 100644 --- a/plugin/src/main/java/org/elasticsearch/xpack/watcher/rest/action/RestWatcherStatsAction.java +++ b/plugin/src/main/java/org/elasticsearch/xpack/watcher/rest/action/RestWatcherStatsAction.java @@ -34,7 +34,7 @@ public class RestWatcherStatsAction extends WatcherRestHandler { @Override protected RestChannelConsumer doPrepareRequest(final RestRequest restRequest, WatcherClient client) throws IOException { - Set metrics = Strings.splitStringByCommaToSet(restRequest.param("metric", "")); + Set metrics = Strings.tokenizeByCommaToSet(restRequest.param("metric", "")); WatcherStatsRequest request = new WatcherStatsRequest(); if (metrics.contains("_all")) {