Project

General

Profile

« Previous | Next » 

Revision ece7e0ae

Added by Andreas Müller almost 6 years ago

ref #6752 stricter handling of Reference.setDatePublished (only for calling methods)

View differences:

cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/taxon/Taxon.java
818 818
    private int computeMisapliedNameRelations(){
819 819
        int count = 0;
820 820
        for (TaxonRelationship rel: this.getRelationsFromThisTaxon()){
821
            if (rel.getType().equals(TaxonRelationshipType.MISAPPLIED_NAME_FOR())
822
                    || rel.getType().equals(TaxonRelationshipType.PRO_PARTE_MISAPPLIED_NAME_FOR()) || rel.getType().equals(TaxonRelationshipType.PARTIAL_MISAPPLIED_NAME_FOR())){
821
            if (rel.getType().isAnyMisappliedName()){
823 822
                count++;
824 823
            }
825 824
        }
......
845 844
    private int computeProparteSynonymRelations(){
846 845
        int count = 0;
847 846
        for (TaxonRelationship rel: this.getRelationsFromThisTaxon()){
848
            if (rel.getType().equals(TaxonRelationshipType.PRO_PARTE_SYNONYM_FOR())
849
                    || rel.getType().equals(TaxonRelationshipType.PARTIAL_SYNONYM_FOR())){
847
            if (rel.getType().isAnySynonym()){
850 848
                count++;
851 849
            }
852 850
        }

Also available in: Unified diff