Revision 9dc896c9
Added by Andreas Müller almost 7 years ago
cdmlib-model/src/test/java/eu/etaxonomy/cdm/model/taxon/TaxonComparatorTest.java | ||
---|---|---|
22 | 22 |
import eu.etaxonomy.cdm.model.common.TimePeriod; |
23 | 23 |
import eu.etaxonomy.cdm.model.name.IBotanicalName; |
24 | 24 |
import eu.etaxonomy.cdm.model.name.IZoologicalName; |
25 |
import eu.etaxonomy.cdm.model.name.TaxonNameBase;
|
|
25 |
import eu.etaxonomy.cdm.model.name.TaxonName; |
|
26 | 26 |
import eu.etaxonomy.cdm.model.name.TaxonNameFactory; |
27 | 27 |
//import eu.etaxonomy.cdm.model.reference.Book; |
28 | 28 |
import eu.etaxonomy.cdm.model.reference.Reference; |
... | ... | |
119 | 119 |
*/ |
120 | 120 |
private String getYear(TaxonBase<?> taxon) { |
121 | 121 |
String year = ""; |
122 |
TaxonNameBase<?,?> tnb = taxon.getName();
|
|
122 |
TaxonName tnb = taxon.getName(); |
|
123 | 123 |
if (tnb.isZoological()){ |
124 | 124 |
year = String.valueOf(tnb.getPublicationYear()); |
125 | 125 |
}else{ |
Also available in: Unified diff
fix #6368 rename table and class TaxonNameBase