diff options
author | Jon Marius Venstad <jonmv@users.noreply.github.com> | 2024-04-29 16:07:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-29 16:07:07 +0200 |
commit | d84936fbe83b8b78425f10b2992d830b886ff15e (patch) | |
tree | 88fcc037875e05d1108794067a46c140d095f0fd /container-core | |
parent | d2a26372494a3e5c5f303f6a65fca85e55b3df69 (diff) |
Always use cached entries
Diffstat (limited to 'container-core')
-rw-r--r-- | container-core/src/main/java/com/yahoo/processing/request/CompoundName.java | 2 |
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 c5ab9f34998..80a6ff1e4bf 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 = useCache ? cache.get(subName) : null; + CompoundName cached = cache.get(subName); children[j] = cached != null ? cached : new CompoundName(subName, this.lowerCasedName.substring(start, end), |