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/07/04 05:47:00 UTC

[jira] [Work logged] (LANG-1167) Add null filter to ReflectionToStringBuilder

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

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

                Author: ASF GitHub Bot
            Created on: 04/Jul/19 05:46
            Start Date: 04/Jul/19 05:46
    Worklog Time Spent: 10m 
      Work Description: HiAscend commented on issue #259: LANG-1167: Add null filter to ReflectionToStringBuilder
URL: https://github.com/apache/commons-lang/pull/259#issuecomment-508346974
 
 
   hello ,
   on V3.8 V3.8.1 V3.9
   when i use
   `ReflectionToStringBuilder.toString(student, ToStringStyle.JSON_STYLE)`
   return some like
   {"id":666,"age":22,"name":"\u4E2D\u56FD","birthday":"Thu Jul 04 13:29:26 CST 2019","book":{"name":null}}
   the student name is "中国" but now it is in unicode charset
   
   however
   on V3.7 it is ok
   see:https://bbs.csdn.net/topics/392557654?page=1#post-404105720
   
 
----------------------------------------------------------------
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: 272001)
            Time Spent: 10m
    Remaining Estimate: 0h

> Add null filter to ReflectionToStringBuilder
> --------------------------------------------
>
>                 Key: LANG-1167
>                 URL: https://issues.apache.org/jira/browse/LANG-1167
>             Project: Commons Lang
>          Issue Type: Improvement
>          Components: lang.builder.*
>            Reporter: Gregory Bonk
>            Assignee: Rob Tompkins
>            Priority: Major
>             Fix For: 3.6
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> 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
(v7.6.3#76005)