mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2025-08-03 11:35:29 -04:00
Allows passing object array to toCSVString method.
This commit is contained in:
parent
ceca94135b
commit
69d77071b9
@ -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 "";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user