summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJon Marius Venstad <venstad@gmail.com>2020-04-17 14:16:16 +0200
committerJon Marius Venstad <venstad@gmail.com>2020-04-17 14:16:16 +0200
commitb98bf882f2d90808349d0ae482c5694aa08e3b2c (patch)
tree73fe103dd99496413d974f43d8a1a7ca51e29417
parentcf3a25d6906c976fbe12b4eb686c916a383e3bd6 (diff)
break, not return, from switch statement
-rw-r--r--controller-server/src/main/java/com/yahoo/vespa/hosted/controller/maintenance/ContactInformationMaintainer.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/maintenance/ContactInformationMaintainer.java b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/maintenance/ContactInformationMaintainer.java
index 6b2daeb1323..d1f2087ce12 100644
--- a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/maintenance/ContactInformationMaintainer.java
+++ b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/maintenance/ContactInformationMaintainer.java
@@ -48,9 +48,9 @@ public class ContactInformationMaintainer extends Maintainer {
(Optional.of(contact).equals(tenant.contact()) ? "un" : "") + "changed");
tenants.store(lockedTenant.with(contact));
});
- return;
+ break;
case cloud:
- return;
+ break;
default:
throw new IllegalArgumentException("Unexpected tenant type '" + tenant.type() + "'.");
}