Revision 2b50eebb
Added by Andreas Müller about 6 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/occurrence/dna/AbstractUnboundEntityCollectionSection.java | ||
---|---|---|
66 | 66 |
Collection<ELEMENT> elements = getEntityCollection(entity); |
67 | 67 |
if(addUnboundElement){ |
68 | 68 |
//cloning to avoid saving the dummy element |
69 |
Collection<ELEMENT> clonedElements = new ArrayList<ELEMENT>();
|
|
69 |
Collection<ELEMENT> clonedElements = new ArrayList<>(); |
|
70 | 70 |
clonedElements.addAll(elements); |
71 | 71 |
clonedElements.add(createNewElement()); //add dummy element which is not bound to entity |
72 | 72 |
return clonedElements; |
Also available in: Unified diff
cleanup