mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-22 21:55:39 +00:00
bug5741: deep copy in DeviceConfiguration copy constructor
This commit is contained in:
+3
-2
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user