[ 
https://issues.apache.org/jira/browse/LANG-1167?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15931359#comment-15931359
 ] 

ASF GitHub Bot commented on LANG-1167:
--------------------------------------

GitHub user MarkDacek opened a pull request:

    https://github.com/apache/commons-lang/pull/259

    LANG-1167: Add null filter to ReflectionToStringBuilder

    @chtompki 
    First attempt at this. In order to avoid a large refactor or breaking 
existing implementations, the boolean has to be a negative (isExcludeNullValues 
instead of appendNullValues). 

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/MarkDacek/commons-lang LANG-1167

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/commons-lang/pull/259.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #259
    
----
commit 3072c655e0d163f0f38d610c37fd7f3cc727714e
Author: MarkDacek <[email protected]>
Date:   2017-03-06T01:36:39Z

    This closes #250

commit 40b8ecd3faa8df655ee8b4141ff309553eccfc88
Author: MarkDacek <[email protected]>
Date:   2017-03-17T21:43:15Z

    Merge remote-tracking branch 'APACHE/master'

commit 661d16d190708a1a396d8b75ba10738e4574c11d
Author: MarkDacek <[email protected]>
Date:   2017-03-18T19:47:09Z

    LANG-1167: Added isExcludeNullValues to ReflectionToStringBuilder and test

commit 3c2673e82d33b6c9bef3005a896e5b0d52b108dd
Author: MarkDacek <[email protected]>
Date:   2017-03-18T20:00:46Z

    LANG-1167: Added more test cases for 
ReflectionToStringBuilderExcludeNullValuesTest

----


> Add null filter to ReflectionToStringBuilder
> --------------------------------------------
>
>                 Key: LANG-1167
>                 URL: https://issues.apache.org/jira/browse/LANG-1167
>             Project: Commons Lang
>          Issue Type: Improvement
>            Reporter: Gregory Bonk
>
> I know I can filter out class level fields with accept but it would be nice 
> if there could be an additional configuration where if a field's value is 
> null then it would be skipped.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to