From 7a467d0e91e384bcd49ec4901836c0dc89601410 Mon Sep 17 00:00:00 2001 From: Richard Cordovano Date: Wed, 8 Feb 2017 19:48:46 -0500 Subject: [PATCH] Improvements to attributes with multiple sources code --- .../sleuthkit/autopsy/datamodel/ArtifactStringContent.java | 2 +- .../testfixtures/CustomArtifactsCreatorIngestModule.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Core/src/org/sleuthkit/autopsy/datamodel/ArtifactStringContent.java b/Core/src/org/sleuthkit/autopsy/datamodel/ArtifactStringContent.java index 492f323538..1c591e6659 100644 --- a/Core/src/org/sleuthkit/autopsy/datamodel/ArtifactStringContent.java +++ b/Core/src/org/sleuthkit/autopsy/datamodel/ArtifactStringContent.java @@ -149,7 +149,7 @@ public class ArtifactStringContent implements StringContent { * Attribute source modules column. */ buffer.append(""); //NON-NLS - buffer.append(StringUtils.join(attr.getSourceModules(), ", ")); + buffer.append(StringUtils.join(attr.getSources(), ", ")); buffer.append(""); //NON-NLS buffer.append("\n"); //NON-NLS diff --git a/Core/src/org/sleuthkit/autopsy/report/testfixtures/CustomArtifactsCreatorIngestModule.java b/Core/src/org/sleuthkit/autopsy/report/testfixtures/CustomArtifactsCreatorIngestModule.java index b66ab57533..289623f0ef 100644 --- a/Core/src/org/sleuthkit/autopsy/report/testfixtures/CustomArtifactsCreatorIngestModule.java +++ b/Core/src/org/sleuthkit/autopsy/report/testfixtures/CustomArtifactsCreatorIngestModule.java @@ -111,8 +111,8 @@ final class CustomArtifactsCreatorIngestModule extends FileIngestModuleAdapter { * The second attempt should have no effect on the data. */ for (BlackboardAttribute attr : attributes) { - attr.addSourceModule("Added Module"); - attr.addSourceModule("Added Module"); + attr.addSource("Added Module"); + attr.addSource("Added Module"); } } catch (TskCoreException ex) {