simplifying GATKReportColumn constructor logic
This commit is contained in:
parent
c9c3f6b0fc
commit
8a9fb514b6
|
|
@ -60,24 +60,12 @@ public class GATKReportColumn extends LinkedHashMap<Object, Object> {
|
||||||
if ( format.equals("") ) {
|
if ( format.equals("") ) {
|
||||||
this.format = "%s";
|
this.format = "%s";
|
||||||
this.dataType = GATKReportDataType.Unknown;
|
this.dataType = GATKReportDataType.Unknown;
|
||||||
if ( defaultValue != null ) {
|
this.defaultValue = (defaultValue != null) ? defaultValue : "";
|
||||||
this.defaultValue = defaultValue;
|
|
||||||
//this.dataType = GATKReportDataType.fromObject(defaultValue);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
this.defaultValue = "";
|
|
||||||
//this.dataType = GATKReportDataType.Unknown;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
this.format = format;
|
this.format = format;
|
||||||
this.dataType = GATKReportDataType.fromFormatString(format);
|
this.dataType = GATKReportDataType.fromFormatString(format);
|
||||||
if ( defaultValue == null ) {
|
this.defaultValue = (defaultValue != null) ? defaultValue : dataType.getDefaultValue();
|
||||||
this.defaultValue = dataType.getDefaultValue();
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
this.defaultValue = defaultValue;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue