We're gonna use standart parameterised constructor, instead of addAll method.

This commit is contained in:
vraskulin 2017-02-09 17:42:05 +03:00
parent 192110cd68
commit 433b08238f
3 changed files with 3 additions and 6 deletions

View file

@ -272,8 +272,7 @@ public class ChatManager {
}
public ArrayList<ChatSession> getChatSessions() {
ArrayList<ChatSession> chatSessionList = new ArrayList<>();
chatSessionList.addAll(chatSessions.values());
ArrayList<ChatSession> chatSessionList = new ArrayList<>(chatSessions.values());
return chatSessionList;
}