From 448231f18ba53edf5c0e7ab4b6732ef69328281c Mon Sep 17 00:00:00 2001 From: Henning Baldersheim Date: Wed, 30 Nov 2022 10:04:50 +0100 Subject: Reduce the simple usage of guava where java has caught up --- vespajlib/src/main/java/com/yahoo/errorhandling/Results.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'vespajlib/src/main/java/com/yahoo/errorhandling') diff --git a/vespajlib/src/main/java/com/yahoo/errorhandling/Results.java b/vespajlib/src/main/java/com/yahoo/errorhandling/Results.java index 89dd44cb9fc..917b7251c15 100644 --- a/vespajlib/src/main/java/com/yahoo/errorhandling/Results.java +++ b/vespajlib/src/main/java/com/yahoo/errorhandling/Results.java @@ -1,11 +1,8 @@ // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.errorhandling; -import com.google.common.collect.ImmutableList; - import java.util.ArrayList; import java.util.Collection; -import java.util.Collections; import java.util.List; /** @@ -17,8 +14,8 @@ public class Results { private final List errors; public Results(List data, List errors) { - this.data = ImmutableList.copyOf(data); - this.errors = ImmutableList.copyOf(errors); + this.data = List.copyOf(data); + this.errors = List.copyOf(errors); } public boolean hasErrors() { -- cgit v1.2.3