Description
The fix should be relatively simple, just add an identity check to the beginning of the method:
if(is1 == is2) {
return true;
}
The methods affected are:
- org.apache.commons.io.IOUtils.contentEquals(InputStream, InputStream)
- org.apache.commons.io.IOUtils.contentEquals(Reader, Reader)
- org.apache.commons.io.IOUtils.contentEqualsIgnoreEOL(Reader, Reader)