diff options
author | Arne Juul <arnej@verizonmedia.com> | 2021-06-29 11:20:37 +0000 |
---|---|---|
committer | Arne Juul <arnej@verizonmedia.com> | 2021-06-29 11:20:37 +0000 |
commit | 6908231a47c2156392ebab39f1c3c8f59d4fe202 (patch) | |
tree | a4bf19c6af1f0bc7c53299d490e71652a61b8882 /controller-server/src/main/java/com/yahoo/vespa/hosted/controller/NotExistsException.java | |
parent | 73aa0d1882f0b2ec62e55e42dafc8a4765a31b1b (diff) |
String.format -> Text.fmt
Diffstat (limited to 'controller-server/src/main/java/com/yahoo/vespa/hosted/controller/NotExistsException.java')
-rw-r--r-- | controller-server/src/main/java/com/yahoo/vespa/hosted/controller/NotExistsException.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/NotExistsException.java b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/NotExistsException.java index 6a47957f27f..45fcb8c2ca0 100644 --- a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/NotExistsException.java +++ b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/NotExistsException.java @@ -1,6 +1,7 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.vespa.hosted.controller; +import com.yahoo.text.Text; import com.yahoo.vespa.hosted.controller.api.identifiers.Identifier; /** @@ -22,7 +23,7 @@ public class NotExistsException extends IllegalArgumentException { * */ public NotExistsException(String capitalizedType, String id) { - super(String.format("%s '%s' does not exist", capitalizedType, id)); + super(Text.fmt("%s '%s' does not exist", capitalizedType, id)); } public NotExistsException(Identifier id) { |