From 33e11f4c4421eaea5c419569cba5424b34e6efe2 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sun, 29 Sep 2013 18:49:20 +1000 Subject: [PATCH] Allow for iterables to be CSV-ified --- proxy/src/main/java/net/md_5/bungee/Util.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proxy/src/main/java/net/md_5/bungee/Util.java b/proxy/src/main/java/net/md_5/bungee/Util.java index c12fb5e8b..b42808f82 100644 --- a/proxy/src/main/java/net/md_5/bungee/Util.java +++ b/proxy/src/main/java/net/md_5/bungee/Util.java @@ -54,12 +54,12 @@ public class Util + ( ( trace.length > 0 ) ? " @ " + t.getStackTrace()[0].getClassName() + ":" + t.getStackTrace()[0].getLineNumber() : "" ); } - public static String csv(Collection objects) + public static String csv(Iterable objects) { return format( objects, ", " ); } - public static String format(Collection objects, String separators) + public static String format(Iterable objects, String separators) { StringBuilder ret = new StringBuilder(); for ( Object o : objects )