]> git.mxchange.org Git - addressbook-ejb.git/commitdiff
used LinkedList for sorting
authorRoland Haeder <roland@mxchange.org>
Fri, 16 Oct 2015 10:34:27 +0000 (12:34 +0200)
committerRoland Haeder <roland@mxchange.org>
Fri, 16 Oct 2015 10:34:27 +0000 (12:34 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

src/java/org/mxchange/addressbook/model/addressbook/AddressbookSessionBean.java

index 0bb090853c88b195feb3786bf6b5ea4297979737..1888db04300b3782884fea00b6fb5bfb7ef6f90e 100644 (file)
@@ -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<User> userList = new ArrayList<>(0);
+               List<User> userList = new LinkedList<>();
 
                // Walk through all users
                for (final User u : allUsersExcept) {