From 8c438df2c10fa4869f6d76c3670e95126cf17dfe Mon Sep 17 00:00:00 2001 From: Oliver Spohngellert Date: Wed, 13 Apr 2016 11:15:40 -0400 Subject: [PATCH] Added documentation and fixed log messages. --- .../autopsy/modules/hashdatabase/HashDbManager.java | 6 ++++++ .../autopsy/modules/hashdatabase/HashLookupSettings.java | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Core/src/org/sleuthkit/autopsy/modules/hashdatabase/HashDbManager.java b/Core/src/org/sleuthkit/autopsy/modules/hashdatabase/HashDbManager.java index 1aa1353a1d..d12be8d8a6 100755 --- a/Core/src/org/sleuthkit/autopsy/modules/hashdatabase/HashDbManager.java +++ b/Core/src/org/sleuthkit/autopsy/modules/hashdatabase/HashDbManager.java @@ -506,6 +506,12 @@ public class HashDbManager implements PropertyChangeListener { } } + /** + * Configures the given settings object by adding all contained hash db to + * the system. + * + * @param settings The settings to configure. + */ @Messages({"# {0} - database name", "HashDbManager.noDbPath.message=Couldn't get valid database path for: {0}"}) private void configureSettings(HashLookupSettings settings) { boolean dbInfoRemoved = false; diff --git a/Core/src/org/sleuthkit/autopsy/modules/hashdatabase/HashLookupSettings.java b/Core/src/org/sleuthkit/autopsy/modules/hashdatabase/HashLookupSettings.java index b391e4ce98..ae52f86219 100755 --- a/Core/src/org/sleuthkit/autopsy/modules/hashdatabase/HashLookupSettings.java +++ b/Core/src/org/sleuthkit/autopsy/modules/hashdatabase/HashLookupSettings.java @@ -202,7 +202,7 @@ final class HashLookupSettings implements Serializable { ++suffix; newHashSetName = hashSetName + suffix; } while (hashSetNames.contains(newHashSetName)); - logger.log(Level.INFO, "Duplicate hash set name " + hashSetName + " found.\nReplacing with " + newHashSetName + "."); + logger.log(Level.INFO, "Duplicate hash set name " + hashSetName + " found. Replacing with " + newHashSetName + "."); if (RuntimeProperties.coreComponentsAreActive()) { JOptionPane.showMessageDialog(null, NbBundle.getMessage(HashLookupSettings.class, @@ -268,7 +268,7 @@ final class HashLookupSettings implements Serializable { "HashDbManager.baseMessage.updatedFormatHashDbConfig"); try { FileUtils.copyFile(new File(configFilePath), new File(backupFilePath)); - logger.log(Level.INFO, baseMessage + "\nA backup copy of the old configuration has been saved as\n" + backupFilePath); + logger.log(Level.INFO, "Updated the schema, backup saved at: " + backupFilePath); if (RuntimeProperties.coreComponentsAreActive()) { JOptionPane.showMessageDialog(null, NbBundle.getMessage(HashLookupSettings.class,