[jira] [Created] (LANG-758) Add an example with whitespace in StringUtils.defaultIfEmpty

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (LANG-758) Add an example with whitespace in StringUtils.defaultIfEmpty

ASF GitHub Bot (Jira)
Add an example with whitespace in StringUtils.defaultIfEmpty
------------------------------------------------------------

                 Key: LANG-758
                 URL: https://issues.apache.org/jira/browse/LANG-758
             Project: Commons Lang
          Issue Type: Improvement
          Components: lang.*
            Reporter: Bruno P. Kinoshita
            Priority: Trivial


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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Updated] (LANG-758) Add an example with whitespace in StringUtils.defaultIfEmpty

ASF GitHub Bot (Jira)

     [ https://issues.apache.org/jira/browse/LANG-758?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bruno P. Kinoshita updated LANG-758:
------------------------------------

    Attachment: stringutils_doc_patch.txt

Patch with Javadoc example
               

> Add an example with whitespace in StringUtils.defaultIfEmpty
> ------------------------------------------------------------
>
>                 Key: LANG-758
>                 URL: https://issues.apache.org/jira/browse/LANG-758
>             Project: Commons Lang
>          Issue Type: Improvement
>          Components: lang.*
>            Reporter: Bruno P. Kinoshita
>            Priority: Trivial
>         Attachments: stringutils_doc_patch.txt
>
>
> 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Closed] (LANG-758) Add an example with whitespace in StringUtils.defaultIfEmpty

ASF GitHub Bot (Jira)
In reply to this post by ASF GitHub Bot (Jira)

     [ https://issues.apache.org/jira/browse/LANG-758?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Henri Yandell closed LANG-758.
------------------------------

       Resolution: Fixed
    Fix Version/s: 3.0.2

Thanks Bruno :) Applied in r1177171.
               

> Add an example with whitespace in StringUtils.defaultIfEmpty
> ------------------------------------------------------------
>
>                 Key: LANG-758
>                 URL: https://issues.apache.org/jira/browse/LANG-758
>             Project: Commons Lang
>          Issue Type: Improvement
>          Components: lang.*
>            Reporter: Bruno P. Kinoshita
>            Priority: Trivial
>             Fix For: 3.0.2
>
>         Attachments: stringutils_doc_patch.txt
>
>
> 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira