Project

General

Profile

« Previous | Next » 

Revision fd122a90

Added by Andreas Müller almost 6 years ago

cleanup

View differences:

src/main/java/eu/etaxonomy/cdm/dataInserter/RegistrationRequiredDataInserter.java
340 340
                        // data imported from IAPT does not have typedesignation citations and sometimes no nomref
341 341

  
342 342
                        if(isPhycobankID){
343
                            youngestPub = (Reference) name.getNomenclaturalReference();
343
                            youngestPub = name.getNomenclaturalReference();
344 344
                            youngestDate = partial(youngestPub.getDatePublished());
345 345

  
346 346
                            if(name.getTypeDesignations() != null && !name.getTypeDesignations().isEmpty()){
347
                                for(TypeDesignationBase td : name.getTypeDesignations()){
347
                                for(TypeDesignationBase<?> td : name.getTypeDesignations()){
348 348
                                    if(td.getCitation() == null){
349 349
                                        continue;
350 350
                                    }
......
366 366
                        }
367 367
                        if(name.getTypeDesignations() != null && !name.getTypeDesignations().isEmpty()){
368 368
                            // do not add the collection directly to avoid "Found shared references to a collection" problem
369
                            HashSet<TypeDesignationBase> typeDesignations = new HashSet<>(name.getTypeDesignations().size());
370
                            for(TypeDesignationBase td : name.getTypeDesignations()){
369
                            Set<TypeDesignationBase> typeDesignations = new HashSet<>(name.getTypeDesignations().size());
370
                            for(TypeDesignationBase<?> td : name.getTypeDesignations()){
371 371
                                if(td.getCitation() == null && isPhycobankID){
372 372
                                    logger.error("Missing TypeDesignation Citation in Phycobank data");
373 373
                                    continue;

Also available in: Unified diff