- fixed order of team members #4936
authorPatrick Plitzner <p.plitzner@bgbm.org>
Mon, 15 Jun 2015 13:08:22 +0000 (15:08 +0200)
committerPatrick Plitzner <p.plitzner@bgbm.org>
Mon, 15 Jun 2015 13:08:22 +0000 (15:08 +0200)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/occurrence/dna/AbstractUnboundEntityCollectionSection.java

index 99e0951c3d3fe292dac00e8d7baae5c7bfb26328..1e8d0f10ff3f686e7a6e057d47954d2ff5331e7e 100644 (file)
@@ -9,8 +9,8 @@
 */
 package eu.etaxonomy.taxeditor.ui.section.occurrence.dna;
 
+import java.util.ArrayList;
 import java.util.Collection;
-import java.util.HashSet;
 
 import org.eclipse.jface.action.Action;
 import org.eclipse.jface.action.IAction;
@@ -67,7 +67,7 @@ public abstract class AbstractUnboundEntityCollectionSection<ENTITY, ELEMENT> ex
         Collection<ELEMENT> elements = getEntityCollection(entity);
         if(addUnboundElement){
             //cloning to avoid saving the dummy element
-            Collection<ELEMENT> clonedElements = new HashSet<ELEMENT>();
+            Collection<ELEMENT> clonedElements = new ArrayList<ELEMENT>();
             clonedElements.addAll(elements);
             clonedElements.add(createNewElement()); //add dummy element which is not bound to entity
             return clonedElements;