mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-17 10:17:41 +00:00
Update ContactNode.java
Make codacy happier.
This commit is contained in:
parent
604c8a877f
commit
bf46b39468
@ -144,10 +144,10 @@ final class ContactNode extends BlackboardArtifactNode {
|
||||
if (count++ > 0) {
|
||||
if (bba.getAttributeType().getTypeName().startsWith("TSK_PHONE")) {
|
||||
String phoneNumCountry = PhoneNumUtil.getCountryCode(bba.getValueString());
|
||||
if (phoneNumCountry != "") {
|
||||
sheetSet.put(new NodeProperty<>(propertyID + "_" + count, bba.getAttributeType().getDisplayName(), "", bba.getDisplayString() + " [" + phoneNumCountry + "]"));
|
||||
} else {
|
||||
if (phoneNumCountry.equals("")) {
|
||||
sheetSet.put(new NodeProperty<>(propertyID + "_" + count, bba.getAttributeType().getDisplayName(), "", bba.getDisplayString()));
|
||||
} else {
|
||||
sheetSet.put(new NodeProperty<>(propertyID + "_" + count, bba.getAttributeType().getDisplayName(), "", bba.getDisplayString() + " [" + phoneNumCountry + "]"));
|
||||
}
|
||||
} else {
|
||||
sheetSet.put(new NodeProperty<>(propertyID + "_" + count, bba.getAttributeType().getDisplayName(), "", bba.getDisplayString()));
|
||||
@ -155,10 +155,10 @@ final class ContactNode extends BlackboardArtifactNode {
|
||||
} else {
|
||||
if (bba.getAttributeType().getTypeName().startsWith("TSK_PHONE")) {
|
||||
String phoneNumCountry = PhoneNumUtil.getCountryCode(bba.getValueString());
|
||||
if (phoneNumCountry != "") {
|
||||
sheetSet.put(new NodeProperty<>(propertyID, bba.getAttributeType().getDisplayName(), "", bba.getDisplayString() + " [" + phoneNumCountry + "]"));
|
||||
} else {
|
||||
if (phoneNumCountry.equals("")) {
|
||||
sheetSet.put(new NodeProperty<>(propertyID, bba.getAttributeType().getDisplayName(), "", bba.getDisplayString()));
|
||||
} else {
|
||||
sheetSet.put(new NodeProperty<>(propertyID, bba.getAttributeType().getDisplayName(), "", bba.getDisplayString() + " [" + phoneNumCountry + "]"));
|
||||
}
|
||||
} else {
|
||||
sheetSet.put(new NodeProperty<>(propertyID, bba.getAttributeType().getDisplayName(), "", bba.getDisplayString()));
|
||||
|
Loading…
x
Reference in New Issue
Block a user