From: Instrumental Date: Sat, 23 Mar 2019 11:06:07 +0000 (-0500) Subject: Remove Sonar False Positive X-Git-Tag: 2.1.11~23 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F00%2F83100%2F1;p=aaf%2Fauthz.git Remove Sonar False Positive Issue-ID: AAF-789 Change-Id: I45395a10db621fb1dd4a4cc0806e0244554d67d0 Signed-off-by: Instrumental --- diff --git a/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/reports/Notify.java b/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/reports/Notify.java index e6ce0849..cc6a611e 100644 --- a/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/reports/Notify.java +++ b/auth/auth-batch/src/main/java/org/onap/aaf/auth/batch/reports/Notify.java @@ -360,6 +360,9 @@ import org.onap.aaf.misc.env.util.Chrono; } idList.add(ident.fullID()); } + if(identity==null) { // Actually, identity can't be null here, because + break; // if(identities.isEmpty() {..} else {... + } // So this is here to avoid Sonar false positive only StringBuilder content = new StringBuilder(); content.append(String.format(header,version,Identity.mixedCase(identity.firstName())));