Project

General

Profile

« Previous | Next » 

Revision 0614271f

Added by Andreas Müller almost 2 years ago

cleanup and fix correct factory method usage

View differences:

src/main/java/eu/etaxonomy/cdm/service/SpecimenTypeDesignationWorkingSetServiceImpl.java
139 139

  
140 140
            VersionableEntity baseEntity = bean.getBaseEntity();
141 141
            Set<TypeDesignationBase> typeDesignations = regDTO.getTypeDesignationsInWorkingSet(
142
                    new TypedEntityReference(baseEntity.getClass(), baseEntity.getUuid(), baseEntity.toString())
142
                    new TypedEntityReference<>(baseEntity.getClass(), baseEntity.getUuid(), baseEntity.toString())
143 143
                    );
144
            for(TypeDesignationBase td : typeDesignations){
145
                DerivationEvent de = DerivationEvent.NewInstance();//
144
            for(TypeDesignationBase<?> td : typeDesignations){
145
                DerivationEvent de = DerivationEvent.NewInstance(DerivationEventType.GATHERING_IN_SITU());
146 146
                de.addOriginal(fieldUnit);
147 147
                de.addDerivative(((SpecimenTypeDesignation)td).getTypeSpecimen());
148
                de.setType(DerivationEventType.GATHERING_IN_SITU());
149 148
            }
150 149

  
151 150
            repo.getRegistrationService().saveOrUpdate(reg);

Also available in: Unified diff