Shows "" not empty space when default string value is ""

This commit is contained in:
Mark DePristo 2011-09-28 11:35:52 -04:00
parent 1e32281a15
commit a5006831d7
1 changed files with 6 additions and 3 deletions

View File

@ -325,11 +325,14 @@ public class GenericDocumentationHandler extends DocumentedGATKFeatureHandler {
return Arrays.toString((Object[])value);
else
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
return "none";
return value.toString();
} else if ( value instanceof String ) {
return value.equals("") ? "\"\"" : value;
} else {
return value.toString();
}
}
/**