commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (Jira)" <j...@apache.org>
Subject [jira] [Work logged] (LANG-1466) new property "omitNullValues" ToStringBuilder
Date Thu, 24 Oct 2019 19:02:00 GMT

     [ https://issues.apache.org/jira/browse/LANG-1466?focusedWorklogId=333676&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-333676
]

ASF GitHub Bot logged work on LANG-1466:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 24/Oct/19 19:01
            Start Date: 24/Oct/19 19:01
    Worklog Time Spent: 10m 
      Work Description: garydgregory commented on issue #473: LANG-1466 | excludeNullValues
param in reflectionToString method
URL: https://github.com/apache/commons-lang/pull/473#issuecomment-546057193
 
 
   I am -1 to adding a new method that just hard codes just the one argument.
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 333676)
    Time Spent: 0.5h  (was: 20m)

> 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
>            Priority: Major
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> 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
(v8.3.4#803005)

Mime
View raw message