You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2019/10/24 14:19:00 UTC
[jira] [Work logged] (LANG-1466) new property "omitNullValues"
ToStringBuilder
[ https://issues.apache.org/jira/browse/LANG-1466?focusedWorklogId=333437&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-333437 ]
ASF GitHub Bot logged work on LANG-1466:
----------------------------------------
Author: ASF GitHub Bot
Created on: 24/Oct/19 14:18
Start Date: 24/Oct/19 14:18
Worklog Time Spent: 10m
Work Description: alasun commented on pull request #473: LANG-1466 | excludeNullValues param in reflectionToString method
URL: https://github.com/apache/commons-lang/pull/473
excludeNullValues additional param in ToStringBuilder.reflectionToString
----------------------------------------------------------------
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: 333437)
Remaining Estimate: 0h
Time Spent: 10m
> 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: 10m
> 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)