Skip to content


Improved: Remove useless ‘StringUtil#join’ overload
Browse files Browse the repository at this point in the history

‘List’ extends ‘Collection’ so there is no need to overload
‘StringUtil#join(Collection,String)’ with ‘StringUtil#join(List,String)’.

git-svn-id: 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
mthl committed May 25, 2019
1 parent 90e70dd commit ab2fcbc
Showing 1 changed file with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,16 +99,6 @@ public static String replaceString(String mainString, String oldString, String n
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
Expand Down

0 comments on commit ab2fcbc

Please sign in to comment.