From b94b9f0c41d03cd969a1613cce7f4dd023700917 Mon Sep 17 00:00:00 2001 From: apriestman <apriestman@basistech.com> Date: Mon, 26 Oct 2020 14:47:13 -0400 Subject: [PATCH] codacy --- bindings/java/src/org/sleuthkit/datamodel/HashUtility.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/java/src/org/sleuthkit/datamodel/HashUtility.java b/bindings/java/src/org/sleuthkit/datamodel/HashUtility.java index d04d34e84..ee2399d0d 100644 --- a/bindings/java/src/org/sleuthkit/datamodel/HashUtility.java +++ b/bindings/java/src/org/sleuthkit/datamodel/HashUtility.java @@ -49,7 +49,6 @@ public class HashUtility { * @throws TskCoreException */ static public List<HashResult> calculateHashes(Content content, Collection<HashType> hashTypes) throws TskCoreException { - List<HashResult> results = new ArrayList<>(); Map<HashType, MessageDigest> digests = new HashMap<>(); for (HashType type : hashTypes) { @@ -84,6 +83,7 @@ static public List<HashResult> calculateHashes(Content content, Collection<HashT } } + List<HashResult> results = new ArrayList<>(); for (HashType type : hashTypes) { results.add(new HashResult(type, DatatypeConverter.printHexBinary(digests.get(type).digest()).toLowerCase())); } -- GitLab