Project

General

Profile

« Previous | Next » 

Revision fe34a9eb

Added by Andreas Müller about 7 years ago

ref #6365 use TaxonNameFactory for botanical names

View differences:

cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/specimen/SpecimenImportBase.java
160 160
            //create new taxon name
161 161

  
162 162
            if (state.getDataHolder().getNomenclatureCode().equals(NomenclaturalCode.ICNAFP)){
163
                taxonName = TaxonNameBase.NewBotanicalInstance(rank);
163
                taxonName = TaxonNameFactory.NewBotanicalInstance(rank);
164 164
            }else if (state.getDataHolder().getNomenclatureCode().equals(NomenclaturalCode.ICZN)){
165 165
                taxonName = TaxonNameFactory.NewZoologicalInstance(rank);
166 166
            }else{
......
347 347
	                return taxonName;
348 348
	            }
349 349
	            else{
350
	                taxonName = TaxonNameBase.NewBotanicalInstance(null);
350
	                taxonName = TaxonNameFactory.NewBotanicalInstance(null);
351 351
	            }
352 352
	            taxonName.setFullTitleCache(fullName, true);
353 353
	            taxonName.setGenusOrUninomial(NB(getFromMap(atomisedMap, "Genus")));

Also available in: Unified diff