mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-17 18:17:43 +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 (count++ > 0) {
|
||||||
if (bba.getAttributeType().getTypeName().startsWith("TSK_PHONE")) {
|
if (bba.getAttributeType().getTypeName().startsWith("TSK_PHONE")) {
|
||||||
String phoneNumCountry = PhoneNumUtil.getCountryCode(bba.getValueString());
|
String phoneNumCountry = PhoneNumUtil.getCountryCode(bba.getValueString());
|
||||||
if (phoneNumCountry != "") {
|
if (phoneNumCountry.equals("")) {
|
||||||
sheetSet.put(new NodeProperty<>(propertyID + "_" + count, bba.getAttributeType().getDisplayName(), "", bba.getDisplayString() + " [" + phoneNumCountry + "]"));
|
|
||||||
} else {
|
|
||||||
sheetSet.put(new NodeProperty<>(propertyID + "_" + count, bba.getAttributeType().getDisplayName(), "", bba.getDisplayString()));
|
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 {
|
} else {
|
||||||
sheetSet.put(new NodeProperty<>(propertyID + "_" + count, bba.getAttributeType().getDisplayName(), "", bba.getDisplayString()));
|
sheetSet.put(new NodeProperty<>(propertyID + "_" + count, bba.getAttributeType().getDisplayName(), "", bba.getDisplayString()));
|
||||||
@ -155,10 +155,10 @@ final class ContactNode extends BlackboardArtifactNode {
|
|||||||
} else {
|
} else {
|
||||||
if (bba.getAttributeType().getTypeName().startsWith("TSK_PHONE")) {
|
if (bba.getAttributeType().getTypeName().startsWith("TSK_PHONE")) {
|
||||||
String phoneNumCountry = PhoneNumUtil.getCountryCode(bba.getValueString());
|
String phoneNumCountry = PhoneNumUtil.getCountryCode(bba.getValueString());
|
||||||
if (phoneNumCountry != "") {
|
if (phoneNumCountry.equals("")) {
|
||||||
sheetSet.put(new NodeProperty<>(propertyID, bba.getAttributeType().getDisplayName(), "", bba.getDisplayString() + " [" + phoneNumCountry + "]"));
|
|
||||||
} else {
|
|
||||||
sheetSet.put(new NodeProperty<>(propertyID, bba.getAttributeType().getDisplayName(), "", bba.getDisplayString()));
|
sheetSet.put(new NodeProperty<>(propertyID, bba.getAttributeType().getDisplayName(), "", bba.getDisplayString()));
|
||||||
|
} else {
|
||||||
|
sheetSet.put(new NodeProperty<>(propertyID, bba.getAttributeType().getDisplayName(), "", bba.getDisplayString() + " [" + phoneNumCountry + "]"));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
sheetSet.put(new NodeProperty<>(propertyID, bba.getAttributeType().getDisplayName(), "", bba.getDisplayString()));
|
sheetSet.put(new NodeProperty<>(propertyID, bba.getAttributeType().getDisplayName(), "", bba.getDisplayString()));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user