1
0
mirror of https://github.com/moparisthebest/Yaaic synced 2024-11-26 19:02:17 -05:00

Server: getCurrentChannelNames() no returns ArrayList<String>

This commit is contained in:
Sebastian Kaspari 2010-04-13 22:02:31 +02:00
parent f37407e2d2
commit 03fb5b882c

View File

@ -310,7 +310,7 @@ public class Server
* *
* @return * @return
*/ */
public String[] getCurrentChannelNames() public ArrayList<String> getCurrentChannelNames()
{ {
ArrayList<String> channels = new ArrayList<String>(); ArrayList<String> channels = new ArrayList<String>();
Collection<Conversation> mConversations = conversations.values(); Collection<Conversation> mConversations = conversations.values();
@ -321,7 +321,7 @@ public class Server
} }
} }
return (String[]) channels.toArray(); return channels;
} }
/** /**