diff --git a/Core/src/org/sleuthkit/autopsy/centralrepository/datamodel/CentralRepoAccount.java b/Core/src/org/sleuthkit/autopsy/centralrepository/datamodel/CentralRepoAccount.java index 01e567682e..c64009461f 100644 --- a/Core/src/org/sleuthkit/autopsy/centralrepository/datamodel/CentralRepoAccount.java +++ b/Core/src/org/sleuthkit/autopsy/centralrepository/datamodel/CentralRepoAccount.java @@ -104,10 +104,7 @@ public final class CentralRepoAccount { if (this.correlationTypeId != other.getCorrelationTypeId()) { return false; } - if (!Objects.equals(this.acctType, other.getAcctType())) { - return false; - } - return true; + return Objects.equals(this.acctType, other.getAcctType()); } } @@ -173,10 +170,7 @@ public final class CentralRepoAccount { if (!Objects.equals(this.typeSpecificIdentifier, other.getIdentifier())) { return false; } - if (!Objects.equals(this.accountType, other.getAccountType())) { - return false; - } - return true; + return Objects.equals(this.accountType, other.getAccountType()); } /** diff --git a/Core/src/org/sleuthkit/autopsy/contentviewers/ContactArtifactViewer.java b/Core/src/org/sleuthkit/autopsy/contentviewers/ContactArtifactViewer.java index d411b5f644..c09bcd081a 100644 --- a/Core/src/org/sleuthkit/autopsy/contentviewers/ContactArtifactViewer.java +++ b/Core/src/org/sleuthkit/autopsy/contentviewers/ContactArtifactViewer.java @@ -66,7 +66,7 @@ public class ContactArtifactViewer extends javax.swing.JPanel implements Artifac private String contactName; // A list of unique accounts matching the attributes of the contact artifact. - private final ArrayList contactUniqueAccountsList = new ArrayList<>(); + private final List contactUniqueAccountsList = new ArrayList<>(); // A list of all unique personas and their account, found by searching on the // account identifier attributes of the Contact artifact. @@ -588,7 +588,7 @@ public class ContactArtifactViewer extends javax.swing.JPanel implements Artifac private class ContactPersonaSearcherTask extends SwingWorker>, Void> { private final List accountAttributesList; - private final ArrayList uniqueAccountsList = new ArrayList<>(); + private final List uniqueAccountsList = new ArrayList<>(); ContactPersonaSearcherTask(List accountAttributesList) { @@ -703,7 +703,7 @@ public class ContactArtifactViewer extends javax.swing.JPanel implements Artifac CreatePersonaButtonListener(PersonaUIComponents personaUIComponents) { this.personaUIComponents = personaUIComponents; } - + @Override public void actionPerformed(java.awt.event.ActionEvent evt) { // Launch the Persona Create dialog @@ -713,16 +713,18 @@ public class ContactArtifactViewer extends javax.swing.JPanel implements Artifac // Pre populate the persona name and accounts if we have them. PersonaDetailsPanel personaPanel = createPersonaDialog.getDetailsPanel(); - if (contactName != null) { - // TBD: set persona name - //personaPanel.setPersonaName(contactName); - } + // TBD: set persona name +// if (contactName != null) { +// personaPanel.setPersonaName(contactName); +// } + // pass the list of accounts to the dialog for (CentralRepoAccount account: contactUniqueAccountsList) { - boolean result = personaPanel.addAccount(account, "Found in Contact artifact.", Persona.Confidence.UNKNOWN); + personaPanel.addAccount(account, "Account found in Contact artifact.", Persona.Confidence.UNKNOWN); } createPersonaDialog.getDetailsPanel().revalidate(); + createPersonaDialog.revalidate(); } }