aboutsummaryrefslogtreecommitdiffstats
path: root/container-core
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@gmail.com>2022-05-18 11:38:27 +0200
committerJon Bratseth <bratseth@gmail.com>2022-05-18 11:38:27 +0200
commit619d924440939076e399f2504fa6850976d2a303 (patch)
tree83d680e0c0c516585b6d4e8e086d825dcb381365 /container-core
parent16de8d32fd0394335ffa065b61f4943c4fd49542 (diff)
Unify constant syntax across models and rank profiles
Diffstat (limited to 'container-core')
-rw-r--r--container-core/src/main/java/com/yahoo/container/handler/Coverage.java27
1 files changed, 13 insertions, 14 deletions
diff --git a/container-core/src/main/java/com/yahoo/container/handler/Coverage.java b/container-core/src/main/java/com/yahoo/container/handler/Coverage.java
index 95494190734..6b510aadd3f 100644
--- a/container-core/src/main/java/com/yahoo/container/handler/Coverage.java
+++ b/container-core/src/main/java/com/yahoo/container/handler/Coverage.java
@@ -63,9 +63,8 @@ public class Coverage {
}
public void merge(Coverage other) {
- if (other == null) {
- return;
- }
+ if (other == null) return;
+
docs += other.getDocs();
nodes += other.getNodes();
nodesTried += other.nodesTried;
@@ -77,17 +76,17 @@ public class Coverage {
// explicitly incomplete beats doc count beats explicitly full
switch (other.fullReason) {
- case EXPLICITLY_FULL:
- // do nothing
- break;
- case EXPLICITLY_INCOMPLETE:
- fullReason = FullCoverageDefinition.EXPLICITLY_INCOMPLETE;
- break;
- case DOCUMENT_COUNT:
- if (fullReason == FullCoverageDefinition.EXPLICITLY_FULL) {
- fullReason = FullCoverageDefinition.DOCUMENT_COUNT;
- }
- break;
+ case EXPLICITLY_FULL:
+ // do nothing
+ break;
+ case EXPLICITLY_INCOMPLETE:
+ fullReason = FullCoverageDefinition.EXPLICITLY_INCOMPLETE;
+ break;
+ case DOCUMENT_COUNT:
+ if (fullReason == FullCoverageDefinition.EXPLICITLY_FULL) {
+ fullReason = FullCoverageDefinition.DOCUMENT_COUNT;
+ }
+ break;
}
}