} catch (IOException ioe) {
if (_log.shouldLog(Log.WARN))
_log.warn("Unable to hash the stream", ioe);
return null;
}
<BUG>return new Hash(digest.engineDigest());
</BUG>
}
<BUG>public static Hash calculateHash(byte[] source, int offset, int len) {
</BUG>
SHA1 h = new SHA1();

} catch (IOException ioe) {
if (_log.shouldLog(Log.WARN))
_log.warn("Unable to hash the stream", ioe);
return null;
}
return new SHA1Hash(digest.engineDigest());
}
public static SHA1Hash calculateHash(byte[] source, int offset, int len) {
SHA1 h = new SHA1();
