Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-1466

new property "omitNullValues" ToStringBuilder

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.9
    • None
    • lang.builder.*
    • None

    Description

      Actually, commons lang "ReflectionToStringBuilder" cannot exclude null values:
       

      return ToStringBuilder.reflectionToString(object, ToStringStyle.MULTI_LINE_STYLE);

      Please provide a new property "omitNullValues" to exclude null values from the "object"-string.

       

      boolean omitNullValues = true;
      return ToStringBuilder.reflectionToString(object, ToStringStyle.MULTI_LINE_STYLE, omitNullValues);
      

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              nimo23 nimo mayr
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m