[jira] [Updated] (LANG-1345) Add methods to enhance non-empty strings

2017-07-10 Thread Mitth'raw'nuruodo (JIRA)

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

Mitth'raw'nuruodo updated LANG-1345:

Description: 
As a corollary to {{defaultString}} 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.

  was:
As a corollary to {{defaultString}} 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

if (StringUtils.isNotEmpty(suffix)) {
return message + ", " + suffix;
} else {
return message;
}

would become:

return message + StringUtils.addIfNotEmpty(suffix, ", ", null);


> 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
>  Remaining Estimate: 24h
>
> As a corollary to {{defaultString}} 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.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Updated] (LANG-1345) Add methods to enhance non-empty strings

2017-07-10 Thread Mitth'raw'nuruodo (JIRA)

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

Mitth'raw'nuruodo updated LANG-1345:

Description: 
As a corollary to {{defaultString}} 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

if (StringUtils.isNotEmpty(suffix)) {
return message + ", " + suffix;
} else {
return message;
}

would become:

return message + StringUtils.addIfNotEmpty(suffix, ", ", null);

  was:
As a corollary to {{defaultString}} and similar methods, allowing 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

if (StringUtils.isNotEmpty(suffix)) {
return message + ", " + suffix;
} else {
return message;
}

would become:

return message + StringUtils.addIfNotEmpty(suffix, ", ", null);


> 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
>  Remaining Estimate: 24h
>
> As a corollary to {{defaultString}} 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
> if (StringUtils.isNotEmpty(suffix)) {
> return message + ", " + suffix;
> } else {
> return message;
> }
> would become:
> return message + StringUtils.addIfNotEmpty(suffix, ", ", null);



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Created] (LANG-1345) Add methods to enhance non-empty strings

2017-07-10 Thread Mitth'raw'nuruodo (JIRA)
Mitth'raw'nuruodo created LANG-1345:
---

 Summary: 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


As a corollary to {{defaultString}} and similar methods, allowing 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

if (StringUtils.isNotEmpty(suffix)) {
return message + ", " + suffix;
} else {
return message;
}

would become:

return message + StringUtils.addIfNotEmpty(suffix, ", ", null);



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Closed] (DAEMON-370) Move attributions from @author in Javadocs to POM

2017-07-10 Thread Amey Jadiye (JIRA)

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

Amey Jadiye closed DAEMON-370.
--

Code Merged to Repository.

> Move attributions from @author in Javadocs to POM
> -
>
> Key: DAEMON-370
> URL: https://issues.apache.org/jira/browse/DAEMON-370
> Project: Commons Daemon
>  Issue Type: Task
>Reporter: Amey Jadiye
> Fix For: 1.1
>
>
> SSIA. @authors should be moved to the POM.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)