mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-17 18:17:43 +00:00
Merge pull request #2782 from raman-bt/release-4.4.0
2536: Review ChildFactory uses for long-running tasks
This commit is contained in:
commit
b9c0f63f65
@ -382,8 +382,8 @@ public class HashsetHits implements AutopsyVisitableItem {
|
||||
if (!artifactHits.containsKey(id)) {
|
||||
BlackboardArtifact art = skCase.getBlackboardArtifact(id);
|
||||
artifactHits.put(id, art);
|
||||
list.add(id);
|
||||
}
|
||||
list.add(id);
|
||||
} catch (TskException ex) {
|
||||
logger.log(Level.SEVERE, "TSK Exception occurred", ex); //NON-NLS
|
||||
}
|
||||
|
@ -356,10 +356,9 @@ public class InterestingHits implements AutopsyVisitableItem {
|
||||
try {
|
||||
if (!artifactHits.containsKey(id)) {
|
||||
BlackboardArtifact art = skCase.getBlackboardArtifact(id);
|
||||
|
||||
artifactHits.put(id, art);
|
||||
list.add(id);
|
||||
artifactHits.put(id, art);
|
||||
}
|
||||
list.add(id);
|
||||
} catch (TskCoreException ex) {
|
||||
logger.log(Level.SEVERE, "TSK Exception occurred", ex); //NON-NLS
|
||||
}
|
||||
|
@ -708,18 +708,17 @@ public class KeywordHits implements AutopsyVisitableItem {
|
||||
for (Long id : keywordResults.getArtifactIds(setName, keyword, DEFAULT_INSTANCE_NAME) ) {
|
||||
RegExpInstanceKey key = new RegExpInstanceKey(id);
|
||||
if (!nodesMap.containsKey(key)) {
|
||||
nodesMap.put(key, createNode(key));
|
||||
list.add(key);
|
||||
nodesMap.put(key, createNode(key));
|
||||
}
|
||||
|
||||
list.add(key);
|
||||
}
|
||||
} else {
|
||||
for (String instance : instances) {
|
||||
RegExpInstanceKey key = new RegExpInstanceKey(instance);
|
||||
if (!nodesMap.containsKey(key)) {
|
||||
nodesMap.put(key, createNode(key));
|
||||
list.add(key);
|
||||
}
|
||||
list.add(key);
|
||||
}
|
||||
|
||||
}
|
||||
@ -904,8 +903,8 @@ public class KeywordHits implements AutopsyVisitableItem {
|
||||
for (Long id : keywordResults.getArtifactIds(setName, keyword, instance) ) {
|
||||
if (!nodesMap.containsKey(id)) {
|
||||
nodesMap.put(id, createBlackboardArtifactNode(id));
|
||||
list.add(id);
|
||||
}
|
||||
list.add(id);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
@ -102,14 +102,14 @@ public class EventRootNode extends DisplayableItemNode {
|
||||
for (Long eventId: eventIDs){
|
||||
if (!nodesMap.containsKey(eventId)) {
|
||||
nodesMap.put(eventId, createNode(eventId));
|
||||
toPopulate.add(eventId);
|
||||
}
|
||||
toPopulate.add(eventId);
|
||||
}
|
||||
} else {
|
||||
if (!nodesMap.containsKey(-1L)) {
|
||||
nodesMap.put(-1L, createNode(-1L));
|
||||
toPopulate.add(-1L);
|
||||
}
|
||||
toPopulate.add(-1L);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user