simplifying GATKReportColumn constructor logic

This commit is contained in:
Mauricio Carneiro 2012-03-29 09:34:38 -04:00
parent c9c3f6b0fc
commit 8a9fb514b6
1 changed files with 2 additions and 14 deletions

View File

@ -60,24 +60,12 @@ public class GATKReportColumn extends LinkedHashMap<Object, Object> {
if ( format.equals("") ) {
this.format = "%s";
this.dataType = GATKReportDataType.Unknown;
if ( defaultValue != null ) {
this.defaultValue = defaultValue;
//this.dataType = GATKReportDataType.fromObject(defaultValue);
}
else {
this.defaultValue = "";
//this.dataType = GATKReportDataType.Unknown;
}
this.defaultValue = (defaultValue != null) ? defaultValue : "";
}
else {
this.format = format;
this.dataType = GATKReportDataType.fromFormatString(format);
if ( defaultValue == null ) {
this.defaultValue = dataType.getDefaultValue();
}
else {
this.defaultValue = defaultValue;
}
this.defaultValue = (defaultValue != null) ? defaultValue : dataType.getDefaultValue();
}
}