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

Add an example with whitespace in StringUtils.defaultIfEmpty

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1
    • Component/s: lang.*
    • Labels:
      None

      Description

      Hi there.

      Today I needed to use a method to return a default value if certain string was not given.

      I used the old "Eclipse CTRL+Space" trick and looked up in the StringUtils API javadoc for an example that suited my need

      I noticed that StringUtils.defaultIfEmpty missed an example with whitespace (like in StringUtils.defaultIfEmpty), and created a patch for it. The description in the Javadoc is very good, but my laziness asks for an example with whitespace

      Cheers,
      Bruno P. Kinoshita

        Attachments

        1. stringutils_doc_patch.txt
          0.6 kB
          Bruno P. Kinoshita

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              kinow Bruno P. Kinoshita
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: