From baad535d944a405f498b2c4b0207ff4b2527bffc Mon Sep 17 00:00:00 2001 From: Gilbert Kwan Date: Wed, 13 Jan 2021 13:57:06 -0500 Subject: [PATCH] Update MetricsIT.java --- .../test/java/it/io/openliberty/guides/metrics/MetricsIT.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/finish/src/test/java/it/io/openliberty/guides/metrics/MetricsIT.java b/finish/src/test/java/it/io/openliberty/guides/metrics/MetricsIT.java index 77ad665..6b17b4c 100644 --- a/finish/src/test/java/it/io/openliberty/guides/metrics/MetricsIT.java +++ b/finish/src/test/java/it/io/openliberty/guides/metrics/MetricsIT.java @@ -206,7 +206,7 @@ private Map getIntMetrics(List metrics, String metricNa Map output = new HashMap(); for (String metric : metrics) { if (metric.startsWith(metricName)) { - String[] mSplit = metric.split("\\s+"); + String[] mSplit = metric.split(" "); String key = mSplit[0]; Integer value = Integer.parseInt(mSplit[mSplit.length - 1]); output.put(key, value);