From e46ce6c4da73df661cf7ea608dba12b68dd11da4 Mon Sep 17 00:00:00 2001 From: millmanorama Date: Tue, 27 Jun 2017 15:44:24 +0200 Subject: [PATCH] comments --- .../autopsy/datamodel/FileTypesByExtension.java | 9 +++++---- .../sleuthkit/autopsy/datamodel/FileTypesByMimeType.java | 6 ++++++ 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/Core/src/org/sleuthkit/autopsy/datamodel/FileTypesByExtension.java b/Core/src/org/sleuthkit/autopsy/datamodel/FileTypesByExtension.java index 907f59248e..9520d62d89 100644 --- a/Core/src/org/sleuthkit/autopsy/datamodel/FileTypesByExtension.java +++ b/Core/src/org/sleuthkit/autopsy/datamodel/FileTypesByExtension.java @@ -114,14 +114,15 @@ public final class FileTypesByExtension implements AutopsyVisitableItem { } /** + * Should the nodes show counts? * - * @param skCase1 the value of skCase1 - * @return the boolean + * + * @return True, unless the DB has more than 200k rows. */ - private boolean shouldShowCounts(SleuthkitCase skCase1) { + private boolean shouldShowCounts(SleuthkitCase skCase) { if (showCounts) { try { - if (skCase1.countFilesWhere("1") > 200000) { + if (skCase.countFilesWhere("1") > 200000) { showCounts = false; } } catch (TskCoreException tskCoreException) { diff --git a/Core/src/org/sleuthkit/autopsy/datamodel/FileTypesByMimeType.java b/Core/src/org/sleuthkit/autopsy/datamodel/FileTypesByMimeType.java index 03dfae4900..53b2ad0581 100644 --- a/Core/src/org/sleuthkit/autopsy/datamodel/FileTypesByMimeType.java +++ b/Core/src/org/sleuthkit/autopsy/datamodel/FileTypesByMimeType.java @@ -179,6 +179,12 @@ public final class FileTypesByMimeType extends Observable implements AutopsyVisi populateHashMap(); } + /** + * Should the nodes show counts? + * + * + * @return True, unless the DB has more than 200k rows. + */ private boolean shouldShowCounts() { if (showCounts) { try {