You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gary Gregory (JIRA)" <ji...@apache.org> on 2013/01/04 16:54:12 UTC
[jira] [Updated] (IO-362) IOUtils.contentEquals* methods returns
false if input1 == input2, should return true
[ https://issues.apache.org/jira/browse/IO-362?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gary Gregory updated IO-362:
----------------------------
Summary: IOUtils.contentEquals* methods returns false if input1 == input2, should return true (was: IOUtils.contentEquals(inputStream1, inputStream2) returns false if inputStream1 == inputStream2, should return true)
> IOUtils.contentEquals* methods returns false if input1 == input2, should return true
> ------------------------------------------------------------------------------------
>
> Key: IO-362
> URL: https://issues.apache.org/jira/browse/IO-362
> Project: Commons IO
> Issue Type: Bug
> Components: Utilities
> Affects Versions: 2.4
> Reporter: Matthew Madson
>
> The fix should be relatively simple, just add an identity check to the beginning of the method:
> if(is1 == is2) {
> return true;
> }
--
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