Revision e6d7b501
Added by Andreas Müller almost 7 years ago
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/taxon/TaxonComparator.java | ||
---|---|---|
20 | 20 |
import eu.etaxonomy.cdm.model.name.NomenclaturalStatusType; |
21 | 21 |
import eu.etaxonomy.cdm.model.name.Rank; |
22 | 22 |
import eu.etaxonomy.cdm.model.name.TaxonNameBase; |
23 |
import eu.etaxonomy.cdm.model.name.ZoologicalName; |
|
24 | 23 |
import eu.etaxonomy.cdm.model.reference.Reference; |
25 | 24 |
|
26 | 25 |
/** |
... | ... | |
195 | 194 |
if (name == null){ |
196 | 195 |
result = null; |
197 | 196 |
}else{ |
198 |
if (name instanceof ZoologicalName){
|
|
199 |
result = (((ZoologicalName)name).getPublicationYear());
|
|
197 |
if (name.isZoological()){
|
|
198 |
result = name.getPublicationYear();
|
|
200 | 199 |
}else{ |
201 | 200 |
Reference ref = (Reference) name.getNomenclaturalReference(); |
202 | 201 |
if (ref == null){ |
Also available in: Unified diff
ref #6368 remove TaxonNameBase subclasses