private void verifyHash() { AnyLongObjectId contentHash = LongObjectId .fromRaw(out.getMessageDigest().digest()); if (!contentHash.equals(id)) { abort(); throw new CorruptLongObjectException(id, contentHash, MessageFormat.format(LfsText.get().corruptLongObject, contentHash, id)); } }
private void verifyHash() { AnyLongObjectId contentHash = LongObjectId .fromRaw(out.getMessageDigest().digest()); if (!contentHash.equals(id)) { abort(); throw new CorruptLongObjectException(id, contentHash, MessageFormat.format(LfsServerText.get().corruptLongObject, contentHash, id)); } }