summaryrefslogtreecommitdiffstats
path: root/document
diff options
context:
space:
mode:
authorAndreas Eriksen <andreer@yahooinc.com>2022-06-16 19:13:15 +0200
committerAndreas Eriksen <andreer@yahooinc.com>2022-06-16 19:13:15 +0200
commit9c292f614b7533e7c74b86f5aa7630e5523ec9e8 (patch)
tree6cc0cdeced54f5534582af8f34a8fca2a27a3ac2 /document
parent8d1a3050854dd98ab6815b90e0c3083b628ec9bf (diff)
String::formatted saves 5 bytes
Diffstat (limited to 'document')
-rw-r--r--document/src/main/java/com/yahoo/document/json/DocumentUpdateJsonSerializer.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/document/src/main/java/com/yahoo/document/json/DocumentUpdateJsonSerializer.java b/document/src/main/java/com/yahoo/document/json/DocumentUpdateJsonSerializer.java
index 52f27046640..1f92bed5e75 100644
--- a/document/src/main/java/com/yahoo/document/json/DocumentUpdateJsonSerializer.java
+++ b/document/src/main/java/com/yahoo/document/json/DocumentUpdateJsonSerializer.java
@@ -239,7 +239,7 @@ public class DocumentUpdateJsonSerializer {
operationKey = "decrement";
break;
default:
- throw new RuntimeException(String.format("Unrecognized arithmetic operator '%s'", operator.name));
+ throw new RuntimeException("Unrecognized arithmetic operator '%s'".formatted(operator.name));
}
wrapIOException(() -> generator.writeFieldName(operationKey));