Project

General

Profile

« Previous | Next » 

Revision e4c8c2c8

Added by Andreas Müller over 3 years ago

cleanup

View differences:

cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/taxon/Taxon.java
1707 1707
        result.setRelationsFromThisTaxon(new HashSet<>());
1708 1708

  
1709 1709
        for (TaxonRelationship fromRelationship : this.getRelationsFromThisTaxon()){
1710
            TaxonRelationship newRelationship = (TaxonRelationship)fromRelationship.clone();
1710
            TaxonRelationship newRelationship = fromRelationship.clone();
1711 1711
            newRelationship.setRelatedFrom(result);
1712 1712
            result.relationsFromThisTaxon.add(newRelationship);
1713 1713
        }
1714 1714

  
1715 1715
        result.setRelationsToThisTaxon(new HashSet<>());
1716 1716
        for (TaxonRelationship toRelationship : this.getRelationsToThisTaxon()){
1717
            TaxonRelationship newRelationship = (TaxonRelationship)toRelationship.clone();
1717
            TaxonRelationship newRelationship = toRelationship.clone();
1718 1718
            newRelationship.setRelatedTo(result);
1719 1719
            result.relationsToThisTaxon.add(newRelationship);
1720 1720
        }

Also available in: Unified diff