mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-17 18:17:43 +00:00
Cleanup
This commit is contained in:
parent
0ea88c0f68
commit
fed52680a9
@ -147,14 +147,14 @@ public class HashDbManager implements PropertyChangeListener {
|
|||||||
*
|
*
|
||||||
* @throws HashDbManagerException
|
* @throws HashDbManagerException
|
||||||
*/
|
*/
|
||||||
public synchronized HashDb addExistingHashDatabase(String hashSetName, String path, boolean searchDuringIngest, boolean sendIngestMessages, HashDatabase.KnownFilesType knownFilesType) throws HashDbManagerException {
|
public synchronized HashDb addExistingHashDatabase(String hashSetName, String path, boolean searchDuringIngest, boolean sendIngestMessages, HashDb.KnownFilesType knownFilesType) throws HashDbManagerException {
|
||||||
HashDb hashDb = null;
|
HashDb hashDb = null;
|
||||||
hashDb = this.addExistingHashDatabaseNoSave(hashSetName, path, searchDuringIngest, sendIngestMessages, knownFilesType);
|
hashDb = this.addExistingHashDatabaseNoSave(hashSetName, path, searchDuringIngest, sendIngestMessages, knownFilesType);
|
||||||
this.save();
|
this.save();
|
||||||
return hashDb;
|
return hashDb;
|
||||||
}
|
}
|
||||||
|
|
||||||
synchronized HashDb addExistingHashDatabaseNoSave(String hashSetName, String path, boolean searchDuringIngest, boolean sendIngestMessages, HashDatabase.KnownFilesType knownFilesType) throws HashDbManagerException {
|
synchronized HashDb addExistingHashDatabaseNoSave(String hashSetName, String path, boolean searchDuringIngest, boolean sendIngestMessages, HashDb.KnownFilesType knownFilesType) throws HashDbManagerException {
|
||||||
HashDb hashDb = null;
|
HashDb hashDb = null;
|
||||||
try {
|
try {
|
||||||
if (!new File(path).exists()) {
|
if (!new File(path).exists()) {
|
||||||
@ -407,7 +407,7 @@ public class HashDbManager implements PropertyChangeListener {
|
|||||||
*
|
*
|
||||||
* @return A list, possibly empty, of hash databases.
|
* @return A list, possibly empty, of hash databases.
|
||||||
*/
|
*/
|
||||||
public synchronized List<HashDb> getAllHashSets(){
|
public synchronized List<HashDb> getAllHashSets() {
|
||||||
try{
|
try{
|
||||||
updateHashSetsFromCentralRepository();
|
updateHashSetsFromCentralRepository();
|
||||||
} catch (TskCoreException ex){
|
} catch (TskCoreException ex){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user