You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by do...@apache.org on 2008/08/18 20:51:10 UTC

svn commit: r686845 - /ofbiz/trunk/framework/base/src/org/ofbiz/base/util/StringUtil.java

Author: doogie
Date: Mon Aug 18 11:51:08 2008
New Revision: 686845

URL: http://svn.apache.org/viewvc?rev=686845&view=rev
Log:
Allow joining of any item, not just string.

Modified:
    ofbiz/trunk/framework/base/src/org/ofbiz/base/util/StringUtil.java

Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/util/StringUtil.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/util/StringUtil.java?rev=686845&r1=686844&r2=686845&view=diff
==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/util/StringUtil.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/util/StringUtil.java Mon Aug 18 11:51:08 2008
@@ -85,11 +85,11 @@
      * @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<String> list, String delim) {
+    public static String join(List<?> list, String delim) {
         if (list == null || list.size() < 1)
             return null;
         StringBuilder buf = new StringBuilder();
-        Iterator<String> i = list.iterator();
+        Iterator<?> i = list.iterator();
 
         while (i.hasNext()) {
             buf.append(i.next());