Allows passing object array to toCSVString method.

This commit is contained in:
Harald Kuhr 2009-11-08 14:43:16 +01:00
parent ceca94135b
commit 69d77071b9

View File

@ -1572,7 +1572,7 @@ public final class StringUtil {
* @param pStringArray the string array * @param pStringArray the string array
* @return A string of comma-separated values * @return A string of comma-separated values
*/ */
public static String toCSVString(String[] pStringArray) { public static String toCSVString(Object[] pStringArray) {
return toCSVString(pStringArray, ", "); return toCSVString(pStringArray, ", ");
} }
@ -1584,7 +1584,7 @@ public final class StringUtil {
* @return string of delimiter separated values * @return string of delimiter separated values
* @throws IllegalArgumentException if {@code pDelimiterString == null} * @throws IllegalArgumentException if {@code pDelimiterString == null}
*/ */
public static String toCSVString(String[] pStringArray, String pDelimiterString) { public static String toCSVString(Object[] pStringArray, String pDelimiterString) {
if (pStringArray == null) { if (pStringArray == null) {
return ""; return "";
} }