Allow joinList to understand Collections.

This commit is contained in:
snowleo 2011-11-29 18:40:13 +01:00
parent e5435f24db
commit 57a0ec9912
2 changed files with 4 additions and 4 deletions

View File

@ -121,8 +121,8 @@ public class AlternativeCommandsHandler
executed.add(label);
}
public List<String> disabledCommands()
public Set<String> disabledCommands()
{
return new ArrayList<String>(executed);
return executed;
}
}

View File

@ -376,9 +376,9 @@ public class Util
buf.append(seperator);
}
if (each instanceof List)
if (each instanceof Collection)
{
buf.append(joinList(seperator, ((List)each).toArray()));
buf.append(joinList(seperator, ((Collection)each).toArray()));
}
else
{