Merge pull request #6738 from raman-bt/4138-consistency-updates

4138: HostManager returns a list instead of a set.
This commit is contained in:
Richard Cordovano 2021-02-22 10:15:33 -05:00 committed by GitHub
commit 2f47ef11db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,7 +24,6 @@ import java.util.Arrays;
import java.util.Collections; import java.util.Collections;
import java.util.EnumSet; import java.util.EnumSet;
import java.util.List; import java.util.List;
import java.util.Set;
import java.util.function.Function; import java.util.function.Function;
import java.util.logging.Level; import java.util.logging.Level;
import org.openide.nodes.ChildFactory; import org.openide.nodes.ChildFactory;
@ -101,7 +100,7 @@ public class HostNode extends DisplayableItemNode {
@Override @Override
protected boolean createKeys(List<DataSourceGrouping> toPopulate) { protected boolean createKeys(List<DataSourceGrouping> toPopulate) {
Set<DataSource> dataSources = null; List<DataSource> dataSources = null;
try { try {
dataSources = Case.getCurrentCaseThrows().getSleuthkitCase().getHostManager().getDataSourcesForHost(host); dataSources = Case.getCurrentCaseThrows().getSleuthkitCase().getHostManager().getDataSourcesForHost(host);
} catch (NoCurrentCaseException | TskCoreException ex) { } catch (NoCurrentCaseException | TskCoreException ex) {