[
https://issues.apache.org/jira/browse/LANG-1198?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18136778#comment-18136778
]
Gary D. Gregory commented on LANG-1198:
---------------------------------------
Resolved by better docs in the PR.
> naming vs behaviour of stripEnd
> -------------------------------
>
> Key: LANG-1198
> URL: https://issues.apache.org/jira/browse/LANG-1198
> Project: Commons Lang
> Issue Type: New Feature
> Components: lang.*
> Reporter: Alex Powell
> Priority: Minor
> Fix For: 3.22.0
>
>
> The signature StringUtils.stripEnd(String str, String stripChars) is
> confusing as the String is being treated as a series of chars. one of our
> devs was caught out by this when the ide in use showed the signature as
> stripEnd(String, String) and the outcome of stripEnd("85123116", "16") was
> not "851231" but rather "85123".
> we realise now that removeEnd is what we were after, so,
> would StringUtils.stripEnd(String str, char[] stripChars) be more fitting?
> cheers
> Alex
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)