From a56225c0460e241eba4c7563e29f01b702fe6893 Mon Sep 17 00:00:00 2001 From: Richard van Heest Date: Mon, 6 Aug 2018 12:09:49 +0200 Subject: [PATCH] add final keyword to checkHashes as well --- src/main/java/gov/loc/repository/bagit/verify/BagVerifier.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/gov/loc/repository/bagit/verify/BagVerifier.java b/src/main/java/gov/loc/repository/bagit/verify/BagVerifier.java index a4cc0fbbe..c8e8c20f7 100644 --- a/src/main/java/gov/loc/repository/bagit/verify/BagVerifier.java +++ b/src/main/java/gov/loc/repository/bagit/verify/BagVerifier.java @@ -149,7 +149,7 @@ public final void isValid(final Bag bag, final boolean ignoreHiddenFiles) throws * Check the supplied checksum hashes against the generated checksum hashes */ @SuppressWarnings("PMD.AvoidInstantiatingObjectsInLoops") - protected void checkHashes(final Manifest manifest) throws CorruptChecksumException, InterruptedException, VerificationException{ + protected final void checkHashes(final Manifest manifest) throws CorruptChecksumException, InterruptedException, VerificationException{ final CountDownLatch latch = new CountDownLatch( manifest.getFileToChecksumMap().size()); //TODO maybe return all of these at some point...