aboutsummaryrefslogtreecommitdiffstats
path: root/configserver
diff options
context:
space:
mode:
authorHarald Musum <musum@verizonmedia.com>2021-02-11 11:49:28 +0100
committerHarald Musum <musum@verizonmedia.com>2021-02-11 11:49:28 +0100
commitc290816a4444d16fab5023373178654ea2fe67d6 (patch)
tree28f7951c92577432c18ae59ad64d7d5f44d5c8ba /configserver
parent092ee96fd25fcdd4cc30f49b128d1124302d3d7b (diff)
Copy list
Diffstat (limited to 'configserver')
-rw-r--r--configserver/src/main/java/com/yahoo/vespa/config/server/ApplicationRepository.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/configserver/src/main/java/com/yahoo/vespa/config/server/ApplicationRepository.java b/configserver/src/main/java/com/yahoo/vespa/config/server/ApplicationRepository.java
index deab507f06b..81ea8d76f14 100644
--- a/configserver/src/main/java/com/yahoo/vespa/config/server/ApplicationRepository.java
+++ b/configserver/src/main/java/com/yahoo/vespa/config/server/ApplicationRepository.java
@@ -832,7 +832,7 @@ public class ApplicationRepository implements com.yahoo.config.provision.Deploye
Map<Tenant, Collection<LocalSession>> sessionsPerTenant = new HashMap<>();
tenantRepository.getAllTenants()
.forEach(tenant -> sessionsPerTenant.put(tenant,
- Collections.unmodifiableCollection(tenant.getSessionRepository().getLocalSessions())));
+ List.copyOf(tenant.getSessionRepository().getLocalSessions())));
Set<ApplicationId> applicationIds = new HashSet<>();
sessionsPerTenant.values()