Restore switch formatting
@@ -266,14 +266,10 @@ public class DeploymentSpecXmlReader {
String policy = upgradeElement.getAttribute("policy");
switch (policy) {
- case "canary":
- return DeploymentSpec.UpgradePolicy.canary;
- case "default":
- return DeploymentSpec.UpgradePolicy.defaultPolicy;
- case "conservative":
- return DeploymentSpec.UpgradePolicy.conservative;
- default:
- throw new IllegalArgumentException("Illegal upgrade policy '" + policy + "': " +
+ case "canary": return DeploymentSpec.UpgradePolicy.canary;
+ case "default": return DeploymentSpec.UpgradePolicy.defaultPolicy;
+ case "conservative": return DeploymentSpec.UpgradePolicy.conservative;
+ default: throw new IllegalArgumentException("Illegal upgrade policy '" + policy + "': " +
"Must be one of " + Arrays.toString(DeploymentSpec.UpgradePolicy.values()));
}
}
