Alex Powell created LANG-1198:
---------------------------------

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


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
(v6.3.4#6332)

Reply via email to