From: Roland Haeder Date: Fri, 16 Oct 2015 10:34:27 +0000 (+0200) Subject: used LinkedList for sorting X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=081c20716243edec5720f9a65ae09cadcbcbe11e;p=jfinancials-mailer-ejb.git used LinkedList for sorting Signed-off-by:Roland Häder --- diff --git a/src/java/org/mxchange/addressbook/model/addressbook/AddressbookSessionBean.java b/src/java/org/mxchange/addressbook/model/addressbook/AddressbookSessionBean.java index 0bb0908..1888db0 100644 --- a/src/java/org/mxchange/addressbook/model/addressbook/AddressbookSessionBean.java +++ b/src/java/org/mxchange/addressbook/model/addressbook/AddressbookSessionBean.java @@ -17,7 +17,7 @@ package org.mxchange.addressbook.model.addressbook; import java.text.MessageFormat; -import java.util.ArrayList; +import java.util.LinkedList; import java.util.List; import javax.ejb.Stateless; import javax.persistence.NoResultException; @@ -109,7 +109,7 @@ public class AddressbookSessionBean extends BaseDatabaseBean implements Addressb this.getLoggerBeanLocal().logDebug(MessageFormat.format("allUsersNotSharing: allSharees.size()={0}", allSharees.size())); //NOI18N // Init final user list - List userList = new ArrayList<>(0); + List userList = new LinkedList<>(); // Walk through all users for (final User u : allUsersExcept) {