bug5741: deep copy in DeviceConfiguration copy constructor

This commit is contained in:
Axel Uhl
2022-06-17 10:45:08 +02:00
parent 80ca8bf3de
commit 82b70ebf09
@@ -1,5 +1,6 @@
package com.sap.sailing.domain.base.configuration.impl;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
import java.util.UUID;
@@ -33,9 +34,9 @@ public class DeviceConfigurationImpl extends NamedImpl implements DeviceConfigur
super(other.getName());
this.id = other.getId();
this.regattaConfiguration = other.getRegattaConfiguration();
this.allowedCourseAreaNames = other.getAllowedCourseAreaNames();
this.allowedCourseAreaNames = new ArrayList<>(other.getAllowedCourseAreaNames());
this.resultsMailRecipient = other.getResultsMailRecipient();
this.byNameDesignerCourseNames = other.getByNameCourseDesignerCourseNames();
this.byNameDesignerCourseNames = new ArrayList<>(other.getByNameCourseDesignerCourseNames());
this.eventId = other.getEventId().orElse(null);
this.courseAreaId = other.getCourseAreaId().orElse(null);
this.priority = other.getPriority().orElse(null);