summaryrefslogtreecommitdiffstats
path: root/vespajlib/src/main/java/com/yahoo/errorhandling
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2022-11-30 10:04:50 +0100
committerHenning Baldersheim <balder@yahoo-inc.com>2022-11-30 10:04:50 +0100
commit448231f18ba53edf5c0e7ab4b6732ef69328281c (patch)
tree289f528fd6adac2a39e636c449c633c26fdb838e /vespajlib/src/main/java/com/yahoo/errorhandling
parent711362f17d4bbece0dc2d0833a22063374ae3e04 (diff)
Reduce the simple usage of guava where java has caught up
Diffstat (limited to 'vespajlib/src/main/java/com/yahoo/errorhandling')
-rw-r--r--vespajlib/src/main/java/com/yahoo/errorhandling/Results.java7
1 files changed, 2 insertions, 5 deletions
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<DATA, ERROR> {
private final List<ERROR> errors;
public Results(List<DATA> data, List<ERROR> errors) {
- this.data = ImmutableList.copyOf(data);
- this.errors = ImmutableList.copyOf(errors);
+ this.data = List.copyOf(data);
+ this.errors = List.copyOf(errors);
}
public boolean hasErrors() {