Feedback from review

This commit is contained in:
Julien Viet
2020-02-05 17:10:43 +01:00
parent 279922234e
commit c858f44da9

View File

@@ -98,14 +98,14 @@ public class DeploymentOptions {
public void fromJson(JsonObject json) {
this.config = json.getJsonObject("config");
this.worker = json.getBoolean("worker", DEFAULT_WORKER);
this.isolationGroup = json.getString("isolationGroup", null);
this.isolationGroup = json.getString("isolationGroup");
this.ha = json.getBoolean("ha", DEFAULT_HA);
JsonArray arr = json.getJsonArray("extraClasspath", null);
JsonArray arr = json.getJsonArray("extraClasspath");
if (arr != null) {
this.extraClasspath = arr.getList();
}
this.instances = json.getInteger("instances", DEFAULT_INSTANCES);
JsonArray arrIsolated = json.getJsonArray("isolatedClasses", null);
JsonArray arrIsolated = json.getJsonArray("isolatedClasses");
if (arrIsolated != null) {
this.isolatedClasses = arrIsolated.getList();
}