From bf46b394684584be3025c3619a96a06a430196dc Mon Sep 17 00:00:00 2001 From: Mark McKinnon Date: Tue, 12 Nov 2019 14:33:45 -0500 Subject: [PATCH] Update ContactNode.java Make codacy happier. --- .../communications/relationships/ContactNode.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Core/src/org/sleuthkit/autopsy/communications/relationships/ContactNode.java b/Core/src/org/sleuthkit/autopsy/communications/relationships/ContactNode.java index 6937368fa3..769ba682a6 100755 --- a/Core/src/org/sleuthkit/autopsy/communications/relationships/ContactNode.java +++ b/Core/src/org/sleuthkit/autopsy/communications/relationships/ContactNode.java @@ -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()));