Revision 2f628c0c
Added by Andreas Müller over 4 years ago
cdm-pesi/src/main/java/eu/etaxonomy/cdm/io/pesi/erms/ErmsTaxonImport.java | ||
---|---|---|
341 | 341 |
logger.warn("Set name cache: " + displayName + "; id =" + meId); |
342 | 342 |
} |
343 | 343 |
if (!taxonName.getNameCache().equals(displayName)){ |
344 |
logger.warn("Computed name cache differs.\n Computed : " + taxonName.getNameCache()+"\n DisplayName: " +displayName); |
|
344 |
int pos = CdmUtils.diffIndex(taxonName.getNameCache(), displayName); |
|
345 |
logger.warn("Computed name cache differs at "+pos+".\n Computed : " + taxonName.getNameCache()+"\n DisplayName: " +displayName); |
|
345 | 346 |
taxonName.setNameCache(displayName, true); |
346 | 347 |
} |
347 | 348 |
taxonName.getTitleCache(); |
348 | 349 |
return taxonName; |
349 | 350 |
} |
350 | 351 |
|
351 |
|
|
352 | 352 |
@SuppressWarnings("unused") //used by MethodMapper |
353 | 353 |
private static TaxonBase<?> testTitleCache(ResultSet rs, ErmsImportState state) throws SQLException{ |
354 | 354 |
TaxonBase<?> taxon = (TaxonBase<?>)state.getRelatedObject(DbImportStateBase.CURRENT_OBJECT_NAMESPACE, DbImportStateBase.CURRENT_OBJECT_ID); |
Also available in: Unified diff
cleanup