aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjonmv <venstad@gmail.com>2023-03-30 19:10:24 +0200
committerjonmv <venstad@gmail.com>2023-03-30 19:28:50 +0200
commitd2a26372494a3e5c5f303f6a65fca85e55b3df69 (patch)
treeef26d3173e2e5ea6a6640444326febc5ebb9b18e
parent25d8b632ee1ebaf42488810e15c9297474e2d905 (diff)
Only use cached elements when specified
-rw-r--r--container-core/src/main/java/com/yahoo/processing/request/CompoundName.java2
1 files changed, 1 insertions, 1 deletions
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 80a6ff1e4bf..c5ab9f34998 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
@@ -97,7 +97,7 @@ public final class CompoundName {
if (end == start) throw new IllegalArgumentException("'" + name + "' is not a legal compound name. " +
"Consecutive, leading or trailing dots are not allowed.");
String subName = this.name.substring(start, end);
- CompoundName cached = cache.get(subName);
+ CompoundName cached = useCache ? cache.get(subName) : null;
children[j] = cached != null ? cached
: new CompoundName(subName,
this.lowerCasedName.substring(start, end),