From 501506f39e9394eb1ca5fc42380dce573226c84b Mon Sep 17 00:00:00 2001 From: "Destiny.Lin" Date: Tue, 11 Oct 2022 16:13:07 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-75998=20=E6=8B=BC=E6=8E=A5=E5=AD=97?= =?UTF-8?q?=E7=AC=A6=E4=B8=B2=E9=87=87=E7=94=A8StableUtils.join?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../design/actions/replace/utils/ShowValueUtils.java | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/designer-realize/src/main/java/com/fr/design/actions/replace/utils/ShowValueUtils.java b/designer-realize/src/main/java/com/fr/design/actions/replace/utils/ShowValueUtils.java index d01b475a9f..191a08eefc 100644 --- a/designer-realize/src/main/java/com/fr/design/actions/replace/utils/ShowValueUtils.java +++ b/designer-realize/src/main/java/com/fr/design/actions/replace/utils/ShowValueUtils.java @@ -2,6 +2,7 @@ package com.fr.design.actions.replace.utils; import com.fr.design.actions.replace.ui.ITReplaceMainDialog; +import com.fr.stable.StableUtils; import com.fr.stable.StringUtils; import com.fr.stable.collections.combination.Pair; @@ -312,15 +313,6 @@ public class ShowValueUtils { * @return 拼接后的字符串 */ public static String joinStr4Position(String... strings) { - StringBuilder builder = new StringBuilder(); - int len = strings.length; - for (int i = 0; i < len; i++) { - if (i == 0) { - builder.append(strings[i]); - } else { - builder.append(JOIN_GAP_STRING).append(strings[i]); - } - } - return builder.toString(); + return StableUtils.join(strings, JOIN_GAP_STRING); } }