summaryrefslogtreecommitdiffstats
path: root/routing-generator
diff options
context:
space:
mode:
authorgjoranv <gv@verizonmedia.com>2022-05-12 15:25:47 +0200
committergjoranv <gv@verizonmedia.com>2022-06-08 11:45:21 +0200
commit5da809318217b36a990ec030145a547e9eebaef8 (patch)
treed73a72a18b18bb007b93738133e44ff3e75ba5f5 /routing-generator
parent84e869333e0ab433d3fcfc91c2f0124991f1e586 (diff)
Upgrade to guice 4.2.3 and guava 27.1
Diffstat (limited to 'routing-generator')
-rw-r--r--routing-generator/src/main/java/com/yahoo/vespa/hosted/routing/RoutingTable.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/routing-generator/src/main/java/com/yahoo/vespa/hosted/routing/RoutingTable.java b/routing-generator/src/main/java/com/yahoo/vespa/hosted/routing/RoutingTable.java
index 90a246ad424..8db2387bf66 100644
--- a/routing-generator/src/main/java/com/yahoo/vespa/hosted/routing/RoutingTable.java
+++ b/routing-generator/src/main/java/com/yahoo/vespa/hosted/routing/RoutingTable.java
@@ -255,6 +255,7 @@ public class RoutingTable {
Optional<InstanceName> instance, ClusterSpec.Id cluster, ZoneId zone) {
if (instance.isEmpty()) { // Application-scoped endpoint
if (dnsName.isEmpty()) throw new IllegalArgumentException("dnsName must given for application-scoped endpoint");
+ @SuppressWarnings("deprecation")
String endpointHash = Hashing.sha1().hashString(dnsName, StandardCharsets.UTF_8).toString();
return "application-" + endpointHash + "." +application.value() + "." + tenant.value();
} else {