From a2e0ade69167e044496622fdd2012f8973379fde Mon Sep 17 00:00:00 2001 From: Greg DiCristofaro Date: Mon, 8 Feb 2021 09:12:36 -0500 Subject: [PATCH] updates to getHost --- .../sleuthkit/autopsy/datamodel/AutopsyTreeChildFactory.java | 3 +-- .../org/sleuthkit/autopsy/datamodel/DataSourcesByTypeNode.java | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Core/src/org/sleuthkit/autopsy/datamodel/AutopsyTreeChildFactory.java b/Core/src/org/sleuthkit/autopsy/datamodel/AutopsyTreeChildFactory.java index ab64e92714..0c9b9c97b1 100644 --- a/Core/src/org/sleuthkit/autopsy/datamodel/AutopsyTreeChildFactory.java +++ b/Core/src/org/sleuthkit/autopsy/datamodel/AutopsyTreeChildFactory.java @@ -100,8 +100,7 @@ public final class AutopsyTreeChildFactory extends ChildFactory.Detachable hosts = tskCase.getHostManager().getHostsByStatus(HostStatus.ACTIVE); - hosts.stream() + tskCase.getHostManager().getHosts().stream() .map(HostGrouping::new) .sorted() .forEach(list::add); diff --git a/Core/src/org/sleuthkit/autopsy/datamodel/DataSourcesByTypeNode.java b/Core/src/org/sleuthkit/autopsy/datamodel/DataSourcesByTypeNode.java index 5fcd94cad2..856b6eec96 100644 --- a/Core/src/org/sleuthkit/autopsy/datamodel/DataSourcesByTypeNode.java +++ b/Core/src/org/sleuthkit/autopsy/datamodel/DataSourcesByTypeNode.java @@ -74,7 +74,7 @@ public class DataSourcesByTypeNode extends DisplayableItemNode { @Override protected boolean createKeys(List toPopulate) { try { - Case.getCurrentCaseThrows().getSleuthkitCase().getHostManager().getHostsByStatus(HostStatus.ACTIVE).stream() + Case.getCurrentCaseThrows().getSleuthkitCase().getHostManager().getHosts().stream() .map(HostDataSources::new) .sorted() .forEach(toPopulate::add);