Fix: Gson was overriding default values

parent 14b033cc
Pipeline #102089 passed with stages
in 10 minutes and 26 seconds
......@@ -23,8 +23,8 @@ public class CliParameters {
this.outputDir = outputDir;
this.rootModel = rootModel;
this.generators = generators;
this.emadlBackend = emadlBackend == null ? DEFAULT_EMADL_BACKEND : emadlBackend;
this.writeTagFile = writeTagFile == null ? DEFAULT_WRITE_TAG_FILE : writeTagFile;
this.emadlBackend = emadlBackend;
this.writeTagFile = writeTagFile;
this.clustringParameters = clustringParameters;
}
......@@ -45,11 +45,11 @@ public class CliParameters {
}
public String getEmadlBackend() {
return emadlBackend;
return emadlBackend == null ? DEFAULT_EMADL_BACKEND : emadlBackend;
}
public boolean getWriteTagFile() {
return writeTagFile;
return writeTagFile == null ? DEFAULT_WRITE_TAG_FILE : writeTagFile;
}
public Optional<ClustringParameters> getClustringParameters() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment