summaryrefslogtreecommitdiffstats
path: root/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/organization/Mail.java
diff options
context:
space:
mode:
authorHarald Musum <musum@verizonmedia.com>2022-12-02 23:09:25 +0100
committerGitHub <noreply@github.com>2022-12-02 23:09:25 +0100
commitafcf1bb71cb7b87a03149d197f724cfc7603ef92 (patch)
treefff1df3e68101edc3d3d3b98b5eb51b7758c209c /controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/organization/Mail.java
parent7f870bf3cb8dd0a3d015a448608ba7291a783932 (diff)
parentfcf664e1a6bb9890bd54ff4f8b78497236152bf2 (diff)
Merge pull request #25096 from vespa-engine/revert-25091-revert-25088-balder/immutablelist-2-listv8.94.46
Revert "Revert "Let list handling catch up with Java 17""
Diffstat (limited to 'controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/organization/Mail.java')
-rw-r--r--controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/organization/Mail.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/organization/Mail.java b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/organization/Mail.java
index 36b6e251fbc..e84578790ab 100644
--- a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/organization/Mail.java
+++ b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/organization/Mail.java
@@ -1,9 +1,10 @@
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.controller.api.integration.organization;
-import com.google.common.collect.ImmutableList;
+import com.yahoo.prelude.IndexFacts;
import java.util.Collection;
+import java.util.List;
import java.util.Objects;
import java.util.Optional;
@@ -31,7 +32,7 @@ public class Mail {
if (recipients.isEmpty())
throw new IllegalArgumentException("Empty recipient list is not allowed.");
recipients.forEach(Objects::requireNonNull);
- this.recipients = ImmutableList.copyOf(recipients);
+ this.recipients = List.copyOf(recipients);
this.subject = Objects.requireNonNull(subject);
this.message = Objects.requireNonNull(message);
this.htmlMessage = Objects.requireNonNull(htmlMessage);