summaryrefslogtreecommitdiffstats
path: root/container-core
diff options
context:
space:
mode:
authorArnstein Ressem <aressem@gmail.com>2022-05-18 13:45:07 +0200
committerGitHub <noreply@github.com>2022-05-18 13:45:07 +0200
commitc080a3c9b1ebd39b947aeddd1e5a0bf5e46d474c (patch)
treeaad434533f9514747e80f339d87b984088e2f1f7 /container-core
parenta4dbfc43c7df534ee5b032204ef19a7b038d7e3e (diff)
Revert "Bratseth/model syntax"
Diffstat (limited to 'container-core')
-rw-r--r--container-core/src/main/java/com/yahoo/container/handler/Coverage.java27
1 files changed, 14 insertions, 13 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 6b510aadd3f..95494190734 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,8 +63,9 @@ 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;
@@ -76,17 +77,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;
}
}