mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-17 18:17:43 +00:00
Addressed Codacy comments.
This commit is contained in:
parent
417105694f
commit
1844ab646f
@ -104,10 +104,7 @@ public final class CentralRepoAccount {
|
|||||||
if (this.correlationTypeId != other.getCorrelationTypeId()) {
|
if (this.correlationTypeId != other.getCorrelationTypeId()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!Objects.equals(this.acctType, other.getAcctType())) {
|
return Objects.equals(this.acctType, other.getAcctType());
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -173,10 +170,7 @@ public final class CentralRepoAccount {
|
|||||||
if (!Objects.equals(this.typeSpecificIdentifier, other.getIdentifier())) {
|
if (!Objects.equals(this.typeSpecificIdentifier, other.getIdentifier())) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!Objects.equals(this.accountType, other.getAccountType())) {
|
return Objects.equals(this.accountType, other.getAccountType());
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -66,7 +66,7 @@ public class ContactArtifactViewer extends javax.swing.JPanel implements Artifac
|
|||||||
private String contactName;
|
private String contactName;
|
||||||
|
|
||||||
// A list of unique accounts matching the attributes of the contact artifact.
|
// A list of unique accounts matching the attributes of the contact artifact.
|
||||||
private final ArrayList<CentralRepoAccount> contactUniqueAccountsList = new ArrayList<>();
|
private final List<CentralRepoAccount> contactUniqueAccountsList = new ArrayList<>();
|
||||||
|
|
||||||
// A list of all unique personas and their account, found by searching on the
|
// A list of all unique personas and their account, found by searching on the
|
||||||
// account identifier attributes of the Contact artifact.
|
// 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<Map<Persona, ArrayList<CentralRepoAccount>>, Void> {
|
private class ContactPersonaSearcherTask extends SwingWorker<Map<Persona, ArrayList<CentralRepoAccount>>, Void> {
|
||||||
|
|
||||||
private final List<BlackboardAttribute> accountAttributesList;
|
private final List<BlackboardAttribute> accountAttributesList;
|
||||||
private final ArrayList<CentralRepoAccount> uniqueAccountsList = new ArrayList<>();
|
private final List<CentralRepoAccount> uniqueAccountsList = new ArrayList<>();
|
||||||
|
|
||||||
|
|
||||||
ContactPersonaSearcherTask(List<BlackboardAttribute> accountAttributesList) {
|
ContactPersonaSearcherTask(List<BlackboardAttribute> accountAttributesList) {
|
||||||
@ -713,16 +713,18 @@ public class ContactArtifactViewer extends javax.swing.JPanel implements Artifac
|
|||||||
// Pre populate the persona name and accounts if we have them.
|
// Pre populate the persona name and accounts if we have them.
|
||||||
PersonaDetailsPanel personaPanel = createPersonaDialog.getDetailsPanel();
|
PersonaDetailsPanel personaPanel = createPersonaDialog.getDetailsPanel();
|
||||||
|
|
||||||
if (contactName != null) {
|
|
||||||
// TBD: set persona name
|
// TBD: set persona name
|
||||||
//personaPanel.setPersonaName(contactName);
|
// if (contactName != null) {
|
||||||
}
|
// personaPanel.setPersonaName(contactName);
|
||||||
|
// }
|
||||||
|
|
||||||
// pass the list of accounts to the dialog
|
// pass the list of accounts to the dialog
|
||||||
for (CentralRepoAccount account: contactUniqueAccountsList) {
|
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.getDetailsPanel().revalidate();
|
||||||
|
createPersonaDialog.revalidate();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user