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

[lang] ToStringStyle.setArrayEnd(String) doesn't replace null with empty string.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0
    • 2.1
    • None
    • None
    • Operating System: All
      Platform: PC

    • 31933

    Description

      According to the javadoc of the ToStringStyle.setArrayEnd(String) method,
      null is accepted, but will be converted to an empty String.

      But, in actual this method does not convert null.

      attached are a fix and a junit test.

      Attachments

        1. ASF.LICENSE.NOT.GRANTED--patch2.txt
          3 kB
          Masato Tezuka
        2. ASF.LICENSE.NOT.GRANTED--patch.txt
          0.7 kB
          Masato Tezuka

        Activity

          People

            Unassigned Unassigned
            tezukam@mm.neweb.ne.jp Masato Tezuka
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: