aboutsummaryrefslogtreecommitdiffstats
path: root/vespajlib
diff options
context:
space:
mode:
authorJon Marius Venstad <venstad@gmail.com>2021-12-17 14:03:39 +0100
committerJon Marius Venstad <venstad@gmail.com>2021-12-17 15:31:40 +0100
commit675ac2a7bf14ff5976aa1abbf3073ccd0f6f2274 (patch)
tree70078d59632343e8fbfa207a5c085d0d15dff0b0 /vespajlib
parentd050d0339f3ad8af9f0e286881d2a2d582317d31 (diff)
Avoid guava
Diffstat (limited to 'vespajlib')
-rw-r--r--vespajlib/src/main/java/com/yahoo/tensor/TensorType.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/vespajlib/src/main/java/com/yahoo/tensor/TensorType.java b/vespajlib/src/main/java/com/yahoo/tensor/TensorType.java
index 5b23d5d92ae..dfbcb06c365 100644
--- a/vespajlib/src/main/java/com/yahoo/tensor/TensorType.java
+++ b/vespajlib/src/main/java/com/yahoo/tensor/TensorType.java
@@ -1,7 +1,6 @@
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.tensor;
-import com.google.common.collect.ImmutableList;
import com.yahoo.text.Ascii7BitMatcher;
import java.util.ArrayList;
@@ -86,7 +85,7 @@ public class TensorType {
private final Value valueType;
/** Sorted list of the dimensions of this */
- private final ImmutableList<Dimension> dimensions;
+ private final List<Dimension> dimensions;
private final TensorType mappedSubtype;
@@ -94,7 +93,7 @@ public class TensorType {
this.valueType = valueType;
List<Dimension> dimensionList = new ArrayList<>(dimensions);
Collections.sort(dimensionList);
- this.dimensions = ImmutableList.copyOf(dimensionList);
+ this.dimensions = List.copyOf(dimensionList);
if (dimensionList.stream().allMatch(d -> d.isIndexed()))
mappedSubtype = empty;