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

Add an example with whitespace in StringUtils.defaultIfEmpty

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 3.1
    • lang.*
    • 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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment