You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Matthew Madson (JIRA)" <ji...@apache.org> on 2013/01/01 02:07:21 UTC
[jira] [Created] (IO-362) IOUtils.contentEquals(inputStream1,
inputStream2) returns false if inputStream1 == inputStream2, should return
true
Matthew Madson created IO-362:
---------------------------------
Summary: IOUtils.contentEquals(inputStream1, inputStream2) returns false if inputStream1 == inputStream2, 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