From 0430e1a91d8c91722e5829e1720df64c8da01b95 Mon Sep 17 00:00:00 2001 From: apriestman Date: Mon, 26 Oct 2020 14:48:57 -0400 Subject: [PATCH] Update class name. codacy. --- .../autopsy/modules/hashdatabase/HashDbIngestModule.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Core/src/org/sleuthkit/autopsy/modules/hashdatabase/HashDbIngestModule.java b/Core/src/org/sleuthkit/autopsy/modules/hashdatabase/HashDbIngestModule.java index f55d4b0488..73986f3f16 100644 --- a/Core/src/org/sleuthkit/autopsy/modules/hashdatabase/HashDbIngestModule.java +++ b/Core/src/org/sleuthkit/autopsy/modules/hashdatabase/HashDbIngestModule.java @@ -18,13 +18,11 @@ */ package org.sleuthkit.autopsy.modules.hashdatabase; -import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.HashMap; import java.util.List; -import java.util.Map; import java.util.concurrent.atomic.AtomicLong; import java.util.function.Function; import java.util.logging.Level; @@ -478,7 +476,7 @@ public class HashDbIngestModule implements FileIngestModule { TimingMetric metric = HealthMonitor.getTimingMetric("Disk Reads: Hash calculation"); long calcstart = System.currentTimeMillis(); - List newHashResults = + List newHashResults = HashUtility.calculateHashes(file, Arrays.asList(HashUtility.HashType.MD5,HashUtility.HashType.SHA256 )); if (file.getSize() > 0) { // Surprisingly, the hash calculation does not seem to be correlated that @@ -491,7 +489,7 @@ public class HashDbIngestModule implements FileIngestModule { HealthMonitor.submitNormalizedTimingMetric(metric, file.getSize() / 500000); } } - for (HashUtility.HashValue hash : newHashResults) { + for (HashUtility.HashResult hash : newHashResults) { if (hash.getType().equals(HashUtility.HashType.MD5)) { file.setMd5Hash(hash.getValue()); } else if (hash.getType().equals(HashUtility.HashType.SHA256)) {