summaryrefslogtreecommitdiffstats
path: root/container-core
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2023-03-29 09:51:35 +0200
committerHenning Baldersheim <balder@yahoo-inc.com>2023-03-29 09:51:35 +0200
commite52d089968ed9d4cc00cd9efb71571691f5f68c8 (patch)
treed4f360519312a107fb4617a6e612b290aed56e0a /container-core
parent66a521195313c4bb7bb24616667be426c946327f (diff)
Update ABI
Diffstat (limited to 'container-core')
-rw-r--r--container-core/abi-spec.json3
-rw-r--r--container-core/src/main/java/com/yahoo/processing/request/CompoundName.java4
2 files changed, 5 insertions, 2 deletions
diff --git a/container-core/abi-spec.json b/container-core/abi-spec.json
index cbb55654930..f9b146bc669 100644
--- a/container-core/abi-spec.json
+++ b/container-core/abi-spec.json
@@ -3186,8 +3186,7 @@
"public boolean equals(java.lang.Object)",
"public java.lang.String toString()",
"public java.lang.String getLowerCasedName()",
- "public static com.yahoo.processing.request.CompoundName from(java.lang.String)",
- "public static com.yahoo.processing.request.CompoundName of(java.lang.String)"
+ "public static com.yahoo.processing.request.CompoundName from(java.lang.String)"
],
"fields" : [
"public static final com.yahoo.processing.request.CompoundName empty"
diff --git a/container-core/src/main/java/com/yahoo/processing/request/CompoundName.java b/container-core/src/main/java/com/yahoo/processing/request/CompoundName.java
index 620e46ee9cc..ac7b3d24d08 100644
--- a/container-core/src/main/java/com/yahoo/processing/request/CompoundName.java
+++ b/container-core/src/main/java/com/yahoo/processing/request/CompoundName.java
@@ -302,6 +302,10 @@ public final class CompoundName {
return b.length()==0 ? "" : b.substring(0, b.length()-1);
}
+ /**
+ * Creates a CompoundName from a string, possibly reusing from cache.
+ * Prefer over constructing on the fly.
+ **/
public static CompoundName from(String name) {
CompoundName found = cache.get(name);
if (found != null) return found;