You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "nimo mayr (JIRA)" <ji...@apache.org> on 2019/06/19 18:22:00 UTC
[jira] [Created] (LANG-1466) new property "omitNullValues"
ToStringBuilder
nimo mayr created LANG-1466:
-------------------------------
Summary: new property "omitNullValues" ToStringBuilder
Key: LANG-1466
URL: https://issues.apache.org/jira/browse/LANG-1466
Project: Commons Lang
Issue Type: Improvement
Components: lang.builder.*
Affects Versions: 3.9
Reporter: nimo mayr
Actually, commons lang "{{ReflectionToStringBuilder"}} *cannot exclude null values*{{:}}
{code:java}
return ToStringBuilder.reflectionToString(object, ToStringStyle.MULTI_LINE_STYLE);{code}
Please provide a new property "omitNullValues" to exclude null values from the "object"-string.
{code:java}
boolean omitNullValues = true;
return ToStringBuilder.reflectionToString(object, ToStringStyle.MULTI_LINE_STYLE, omitNullValues);
{code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)