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@ed73724701e53aed0a70704a4a20820d0f4e08c7
@@ -38,7 +38,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")) {
