From e52d089968ed9d4cc00cd9efb71571691f5f68c8 Mon Sep 17 00:00:00 2001 From: Henning Baldersheim Date: Wed, 29 Mar 2023 09:51:35 +0200 Subject: Update ABI --- container-core/abi-spec.json | 3 +-- .../src/main/java/com/yahoo/processing/request/CompoundName.java | 4 ++++ 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'container-core') 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; -- cgit v1.2.3