commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Yandell (Commented) (JIRA)" <>
Subject [jira] [Commented] (LANG-787) StringUtils.RemoveIgnoreCase desired
Date Wed, 08 Feb 2012 06:58:59 GMT


Henri Yandell commented on LANG-787:

Matt: An enum-focused redo of the API for 4.0 to get rid of the 'use a different method name'
approach would be an option. I'd point to the NumericEntityUnescaper class and its OPTION
pattern as a way to have a nice API that allows future tweaks without screwing with backwards

Gary: The if/else problem you list is only valid in the use cases where you want to reflect
the choice to a higher level of the system. I don't think there's a reason to think that is
the majority use case, and even if it is it's easy to write your own simple function above
ours to simplify your code.
> StringUtils.RemoveIgnoreCase desired
> ------------------------------------
>                 Key: LANG-787
>                 URL:
>             Project: Commons Lang
>          Issue Type: New Feature
>          Components: lang.*
>    Affects Versions: 3.1
>            Reporter: david cogen
>            Priority: Minor
> removeStartIgnoreCase() and removeEndIgnoreCase() exist, so why not removeIgnoreCase()
> Specifically:
> String removeIgnoreCase(String str, String remove)

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message