From 8b14531167d733e66389a45a2cdce998884dcc5e Mon Sep 17 00:00:00 2001 From: Michael Froh Date: Mon, 12 Aug 2024 13:41:51 -0700 Subject: [PATCH] Remove use of org.apache.logging.log4j.util.Strings Signed-off-by: Michael Froh --- .../common/xcontent/JsonToStringXContentParser.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/main/java/org/opensearch/common/xcontent/JsonToStringXContentParser.java b/server/src/main/java/org/opensearch/common/xcontent/JsonToStringXContentParser.java index fc89b3c5fc058..d02e1e6d811aa 100644 --- a/server/src/main/java/org/opensearch/common/xcontent/JsonToStringXContentParser.java +++ b/server/src/main/java/org/opensearch/common/xcontent/JsonToStringXContentParser.java @@ -8,8 +8,8 @@ package org.opensearch.common.xcontent; -import org.apache.logging.log4j.util.Strings; import org.opensearch.common.xcontent.json.JsonXContent; +import org.opensearch.core.common.Strings; import org.opensearch.core.common.bytes.BytesReference; import org.opensearch.core.xcontent.AbstractXContentParser; import org.opensearch.core.xcontent.DeprecationHandler; @@ -110,7 +110,7 @@ private void parseToken(Deque path) throws IOException { String parsedValue = parseValue(); if (parsedValue != null) { this.valueList.add(parsedValue); - this.valueAndPathList.add(Strings.join(path, '.') + EQUAL_SYMBOL + parsedValue); + this.valueAndPathList.add(Strings.collectionToDelimitedString(path, ".") + EQUAL_SYMBOL + parsedValue); } this.parser.nextToken(); }