Project

General

Profile

Revision 5291e4cf

ID5291e4cf52dfbe665aa67f49c87cd257750c2033
Parent e061e243
Child 66122abe

Added by Andreas Müller over 2 years ago

cleanup

View differences:

cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/name/TaxonName.java
2462 2462
    @Override
2463 2463
    public Set<TypeDesignationBase> getTypeDesignations() {
2464 2464
        if(typeDesignations == null) {
2465
            this.typeDesignations = new HashSet<TypeDesignationBase>();
2465
            this.typeDesignations = new HashSet<>();
2466 2466
        }
2467 2467
        return typeDesignations;
2468 2468
    }
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/NameServiceImpl.java
205 205
        }else if (name != null && typeDesignation != null){
206 206
            removeSingleDesignation(name, typeDesignation);
207 207
        }else if (name != null){
208
            Set<TypeDesignationBase<?>> designationSet = new HashSet<>(name.getTypeDesignations());
209
            for (Object o : designationSet){
210
                TypeDesignationBase<?> desig = CdmBase.deproxy(o, TypeDesignationBase.class);
208
            Set<TypeDesignationBase> designationSet = new HashSet<>(name.getTypeDesignations());
209
            for (TypeDesignationBase<?> o : designationSet){
210
                TypeDesignationBase<?> desig = CdmBase.deproxy(o);
211 211
                removeSingleDesignation(name, desig);
212 212
            }
213 213
        }else if (typeDesignation != null){

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)