Project

General

Profile

« Previous | Next » 

Revision 556e3ea7

Added by Andreas Müller about 5 years ago

minor

View differences:

cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/NameServiceImpl.java
211 211
            removeSingleDesignation(name, typeDesignation);
212 212
        }else if (name != null){
213 213
            @SuppressWarnings("rawtypes")
214
            Set<TypeDesignationBase<?>> designationSet = new HashSet<>(name.getTypeDesignations());
214
            Set<TypeDesignationBase<?>> designationSet = new HashSet(name.getTypeDesignations());
215 215
            for (TypeDesignationBase<?> desig : designationSet){
216 216
                desig = CdmBase.deproxy(desig);
217 217
                removeSingleDesignation(name, desig);
218 218
            }
219 219
        }else if (typeDesignation != null){
220 220
            @SuppressWarnings("unchecked")
221
            Set<TaxonName> nameSet = new HashSet<>(typeDesignation.getTypifiedNames());
221
            Set<TaxonName> nameSet = new HashSet(typeDesignation.getTypifiedNames());
222 222
            for (TaxonName singleName : nameSet){
223 223
                singleName = CdmBase.deproxy(singleName);
224 224
                removeSingleDesignation(singleName, typeDesignation);

Also available in: Unified diff