aboutsummaryrefslogtreecommitdiffstats
path: root/client/src
diff options
context:
space:
mode:
authorYavor Paunov <yavorp@spotify.com>2022-09-07 23:08:54 -0400
committerYavor Paunov <yavorp@spotify.com>2022-09-07 23:15:05 -0400
commit63b6620b23c8093e22e18626e2eec0bf56806447 (patch)
tree37774d078999bb8389761591fe0dd173330acb53 /client/src
parent5f19d58210dee17bf2c8161b6fbea66163cd79d6 (diff)
Use Java standard map instead of GSON internal one
LinkedHashTreeMap is an internal class never intended for use outside of GSON. It was removed in https://github.com/google/gson/pull/1992 (version 2.9.0) and its use in this project prevents the GSON version from being bumped. The standard LinkedHashMap is a perfect drop-in replacement as it also preserves insertion order.
Diffstat (limited to 'client/src')
-rw-r--r--client/src/main/java/ai/vespa/client/dsl/FixedQuery.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/client/src/main/java/ai/vespa/client/dsl/FixedQuery.java b/client/src/main/java/ai/vespa/client/dsl/FixedQuery.java
index 63d06e79998..f122171518c 100644
--- a/client/src/main/java/ai/vespa/client/dsl/FixedQuery.java
+++ b/client/src/main/java/ai/vespa/client/dsl/FixedQuery.java
@@ -1,10 +1,9 @@
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package ai.vespa.client.dsl;
-import com.google.gson.internal.LinkedHashTreeMap;
-
import java.math.BigDecimal;
import java.util.HashMap;
+import java.util.LinkedHashMap;
import java.util.Map;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.stream.Collectors;
@@ -359,7 +358,7 @@ public class FixedQuery {
}
sb.append(";");
- queryMap = new LinkedHashTreeMap<>(); // for the order
+ queryMap = new LinkedHashMap<>(); // for the order
queryMap.put("yql", sb.toString());
queryMap.putAll(others);
queryMap.putAll(getUserInputs());