From ab2fcbcb4a9d3ba819c9fc7396c9efba3727cf7c Mon Sep 17 00:00:00 2001 From: Mathieu Lirzin Date: Sat, 25 May 2019 09:10:12 +0000 Subject: [PATCH] =?UTF-8?q?Improved:=20Remove=20useless=20=E2=80=98StringU?= =?UTF-8?q?til#join=E2=80=99=20overload=20(OFBIZ-11014)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ‘List’ extends ‘Collection’ so there is no need to overload ‘StringUtil#join(Collection,String)’ with ‘StringUtil#join(List,String)’. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1859920 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/ofbiz/base/util/StringUtil.java | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/framework/base/src/main/java/org/apache/ofbiz/base/util/StringUtil.java b/framework/base/src/main/java/org/apache/ofbiz/base/util/StringUtil.java index daf39a444e..8721021223 100644 --- a/framework/base/src/main/java/org/apache/ofbiz/base/util/StringUtil.java +++ b/framework/base/src/main/java/org/apache/ofbiz/base/util/StringUtil.java @@ -99,16 +99,6 @@ public class StringUtil { return mainSb.toString(); } - /** - * Creates a single string from a List of strings seperated by a delimiter. - * @param list a list of strings to join - * @param delim the delimiter character(s) to use. (null value will join with no delimiter) - * @return a String of all values in the list seperated by the delimiter - */ - public static String join(List list, String delim) { - return join ((Collection) list, delim); - } - /** * Creates a single string from a Collection of strings seperated by a delimiter. * @param col a collection of strings to join