[ 
https://issues.apache.org/jira/browse/LANG-1345?focusedWorklogId=646615&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-646615
 ]

ASF GitHub Bot logged work on LANG-1345:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 04/Sep/21 15:07
            Start Date: 04/Sep/21 15:07
    Worklog Time Spent: 10m 
      Work Description: coveralls edited a comment on pull request #653:
URL: https://github.com/apache/commons-lang/pull/653#issuecomment-729450719


   
   [![Coverage 
Status](https://coveralls.io/builds/42657050/badge)](https://coveralls.io/builds/42657050)
   
   Coverage increased (+0.0006%) to 94.952% when pulling 
**cff2541723e2d52c80a264bcd9e56fb4f7ccb0ad on arturobernalg:feature/LANG-1345** 
into **4ff5e2b9f98e5ca9dd105a2d08477e0371ae8832 on apache:master**.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

            Worklog Id:     (was: 646615)
    Remaining Estimate: 21.5h  (was: 21h 40m)
            Time Spent: 2.5h  (was: 2h 20m)

> Add methods to enhance non-empty strings
> ----------------------------------------
>
>                 Key: LANG-1345
>                 URL: https://issues.apache.org/jira/browse/LANG-1345
>             Project: Commons Lang
>          Issue Type: Improvement
>          Components: lang.*
>            Reporter: Mitth'raw'nuruodo
>            Priority: Minor
>   Original Estimate: 24h
>          Time Spent: 2.5h
>  Remaining Estimate: 21.5h
>
> As a corollary to {{defaultString}}, {{appendIfMissing}}, and similar 
> methods, which allow the client to replace a missing string with something, 
> it would sometimes be helpful to have methods that enhance a string, if it is 
> present, with a prefix and suffix (or perhaps with an arbitrary function).
> Eg
> {code}
> if (StringUtils.isNotEmpty(queryString)) {
>     return url + "?" + queryString;
> } else {
>     return url;
> }
> {code}
> would become:
> {code}
> return url + StringUtils.addIfNotEmpty(queryString, "?", null);
> {code}
> with the second parameter being the prefix, and the third, the suffix. If the 
> string is null or empty, return empty string.
> If this could accept arbitrary transformation functions, it could effectively 
> become the Elvis operator.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to