From db8d449a9f8c93df16874123078c280fb346174f Mon Sep 17 00:00:00 2001 From: Jon Marius Venstad Date: Sat, 18 Dec 2021 12:05:59 +0100 Subject: Revert "Replace optimaize with OpenNLP language detector [run-systemtest]" --- vespajlib/src/main/java/com/yahoo/tensor/TensorType.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'vespajlib') 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 dimensions; + private final ImmutableList dimensions; private final TensorType mappedSubtype; @@ -93,7 +94,7 @@ public class TensorType { this.valueType = valueType; List 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; -- cgit v1.2.3