Improved: Remove useless ‘StringUtil#join’ overload
(OFBIZ-11014) ‘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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user