diff options
author | Valerij Fredriksen <valerijf@vespa.ai> | 2023-10-24 09:36:36 +0200 |
---|---|---|
committer | Valerij Fredriksen <valerijf@vespa.ai> | 2023-10-24 09:44:31 +0200 |
commit | f52cab794a5c43e2e8f83ab990bd24b840f360c8 (patch) | |
tree | d3b7f3410fad7958433f0ffa8e5fa34646e5cdc3 /controller-server | |
parent | 0b6956a16bea480d9acbc0a03c747f69d69aaba8 (diff) |
Assign copied list
Diffstat (limited to 'controller-server')
-rw-r--r-- | controller-server/src/main/java/com/yahoo/vespa/hosted/controller/notification/Notification.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/notification/Notification.java b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/notification/Notification.java index f28b21228d9..897e0be2d22 100644 --- a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/notification/Notification.java +++ b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/notification/Notification.java @@ -37,7 +37,7 @@ public record Notification(Instant at, Notification.Type type, Notification.Leve Objects.requireNonNull(level, "level cannot be null"); Objects.requireNonNull(source, "source cannot be null"); Objects.requireNonNull(title, "title cannot be null"); - List.copyOf(Objects.requireNonNull(messages, "messages cannot be null")); + messages = List.copyOf(Objects.requireNonNull(messages, "messages cannot be null")); // Allowing empty title temporarily until all notifications have a title // if (title.isBlank()) throw new IllegalArgumentException("title cannot be empty"); |