diff options
author | Jon Marius Venstad <jonmv@users.noreply.github.com> | 2021-12-18 12:05:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-18 12:05:59 +0100 |
commit | db8d449a9f8c93df16874123078c280fb346174f (patch) | |
tree | 9d96823262df3e60d5da93f697758154b1ae93b1 /vespajlib/src/main | |
parent | b4f5820672908823982c69260a8a5df3163aa236 (diff) |
Revert "Replace optimaize with OpenNLP language detector [run-systemtest]"
Diffstat (limited to 'vespajlib/src/main')
-rw-r--r-- | vespajlib/src/main/java/com/yahoo/tensor/TensorType.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/vespajlib/src/main/java/com/yahoo/tensor/TensorType.java b/vespajlib/src/main/java/com/yahoo/tensor/TensorType.java index dfbcb06c365..5b23d5d92ae 100644 --- a/vespajlib/src/main/java/com/yahoo/tensor/TensorType.java +++ b/vespajlib/src/main/java/com/yahoo/tensor/TensorType.java @@ -1,6 +1,7 @@ // 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; @@ -85,7 +86,7 @@ public class TensorType { private final Value valueType; /** Sorted list of the dimensions of this */ - private final List<Dimension> dimensions; + private final ImmutableList<Dimension> dimensions; private final TensorType mappedSubtype; @@ -93,7 +94,7 @@ public class TensorType { this.valueType = valueType; List<Dimension> dimensionList = new ArrayList<>(dimensions); Collections.sort(dimensionList); - this.dimensions = List.copyOf(dimensionList); + this.dimensions = ImmutableList.copyOf(dimensionList); if (dimensionList.stream().allMatch(d -> d.isIndexed())) mappedSubtype = empty; |