Project

General

Profile

« Previous | Next » 

Revision 2d09ccf7

Added by Andreas Müller over 4 years ago

add more specific return type to CommonService.getSourcedObjectByIdInSource

View differences:

cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/taxonx/TaxonXNomenclatureImport.java
136 136
		ICommonService commonService = getCommonService();
137 137
		String originalSourceId = config.getOriginalSourceId();
138 138
		String namespace = config.getOriginalSourceTaxonNamespace();
139
		result = (Taxon)commonService.getSourcedObjectByIdInSource(Taxon.class, originalSourceId , namespace);
139
		result = commonService.getSourcedObjectByIdInSource(Taxon.class, originalSourceId , namespace);
140 140
		if (result == null){
141 141
			logger.warn("Taxon (id: " + originalSourceId + ", namespace: " + namespace + ") could not be found");
142 142
		}

Also available in: Unified diff