diff options
author | Jon Bratseth <bratseth@gmail.com> | 2022-10-12 00:00:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-12 00:00:30 +0200 |
commit | 4aa8894cd206e0e33847c90606c92c783b09fb2d (patch) | |
tree | 55c5d86208769e90648ec6475edbe450e014ac05 /container-search/src/main/java/com | |
parent | 274bcee5a55fb61a7c819e6be6acca554fe7a3ae (diff) | |
parent | a5d10657f725e826a7cb3521eb6cba4da5416546 (diff) |
Merge pull request #24396 from vespa-engine/balder/optimize-empty-and-full-first
Optimize CompoundName.first with 0 elements to return CompoundName.em…
Diffstat (limited to 'container-search/src/main/java/com')
-rw-r--r-- | container-search/src/main/java/com/yahoo/search/query/profile/QueryProfileProperties.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/container-search/src/main/java/com/yahoo/search/query/profile/QueryProfileProperties.java b/container-search/src/main/java/com/yahoo/search/query/profile/QueryProfileProperties.java index 224f75e7034..f5d797b4b9f 100644 --- a/container-search/src/main/java/com/yahoo/search/query/profile/QueryProfileProperties.java +++ b/container-search/src/main/java/com/yahoo/search/query/profile/QueryProfileProperties.java @@ -357,7 +357,7 @@ public class QueryProfileProperties extends Properties { if (profile.getTypes().isEmpty()) return name; CompoundName unaliasedName = name; - for (int i = 0; i<name.size(); i++) { + for (int i = 0; i < name.size(); i++) { QueryProfileType type = profile.getType(name.first(i), context); if (type == null) continue; if (type.aliases() == null) continue; // TODO: Make never null |