Shows "" not empty space when default string value is ""
This commit is contained in:
parent
1e32281a15
commit
a5006831d7
|
|
@ -325,11 +325,14 @@ public class GenericDocumentationHandler extends DocumentedGATKFeatureHandler {
|
||||||
return Arrays.toString((Object[])value);
|
return Arrays.toString((Object[])value);
|
||||||
else
|
else
|
||||||
throw new RuntimeException("Unexpected array type in prettyPrintValue. Value was " + value + " type is " + type);
|
throw new RuntimeException("Unexpected array type in prettyPrintValue. Value was " + value + " type is " + type);
|
||||||
} else if ( RodBinding.class.isAssignableFrom(value.getClass() ) )
|
} else if ( RodBinding.class.isAssignableFrom(value.getClass() ) ) {
|
||||||
// annoying special case to handle the UnBound() constructor
|
// annoying special case to handle the UnBound() constructor
|
||||||
return "none";
|
return "none";
|
||||||
|
} else if ( value instanceof String ) {
|
||||||
return value.toString();
|
return value.equals("") ? "\"\"" : value;
|
||||||
|
} else {
|
||||||
|
return value.toString();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue