Browse Source

REPORT-75998 拼接字符串采用StableUtils.join

release/11.0
Destiny.Lin 2 years ago
parent
commit
501506f39e
  1. 12
      designer-realize/src/main/java/com/fr/design/actions/replace/utils/ShowValueUtils.java

12
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);
}
}

Loading…
Cancel
Save