[
https://issues.apache.org/jira/browse/LANG-784?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13637160#comment-13637160
]
Henri Yandell commented on LANG-784:
------------------------------------
I'm in favour of javadoc improvement. Something that notes that 'This means
that "abc" - "ab" is the empty String, not "c".' If we'd been redoing it, I'd
probably make it work the other way. Show the remainder of the first String and
not the second String, but we're API bound now.
> Strange behavior on StringUtils.difference
> ------------------------------------------
>
> Key: LANG-784
> URL: https://issues.apache.org/jira/browse/LANG-784
> Project: Commons Lang
> Issue Type: Improvement
> Components: lang.*
> Affects Versions: 3.0.1
> Reporter: Arnaud Brunet
> Priority: Minor
>
> Hi,
> The behavior of the method StringUtils.difference () behaves in a
> non-intuitive (explain in the javadoc).
> StringUtils.difference ("abc", "") returns "" as intuitively expected to be
> "abc".
> Is it possible to change this behavior ?
> Regards,
> Arnaud
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira