Project

General

Profile

« Previous | Next » 

Revision 64cf9d1d

Added by Andreas Müller about 5 years ago

ref #6794 fix early setting of termType during term loading

View differences:

cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/name/NomenclaturalStatusType.java
913 913
	 */
914 914

  
915 915
	@Override
916
    public NomenclaturalStatusType readCsvLine(Class<NomenclaturalStatusType> termClass, List<String> csvLine, Map<UUID,DefinedTermBase> terms, boolean abbrevAsId) {   //TODO should be List<String> but makes error for some strange reason
916
    public NomenclaturalStatusType readCsvLine(Class<NomenclaturalStatusType> termClass, List<String> csvLine, TermType termType,
917
            Map<UUID,DefinedTermBase> terms, boolean abbrevAsId) {   //TODO should be List<String> but makes error for some strange reason
917 918
		try {
918 919
			NomenclaturalStatusType newInstance = termClass.newInstance();
920
			newInstance.setTermType(termType);
919 921
			DefinedTermBase.readCsvLine(newInstance, csvLine, Language.LATIN(), abbrevAsId);
920 922
			return newInstance;
921 923
		} catch (Exception e) {

Also available in: Unified diff