From: Sumapriya Sarvepalli Date: Mon, 24 Sep 2018 07:01:59 +0000 (+0530) Subject: Sonar major issues X-Git-Tag: 1.1.10~6 X-Git-Url: https://gerrit.onap.org/r/gitweb?p=dmaap%2Fmessagerouter%2Fmsgrtr.git;a=commitdiff_plain;h=a57435f4f0491048a75f68231e95ab7744c9c176 Sonar major issues Replace the type specification in this constructor call with the diamond operator Sonar Link: https://sonar.onap.org/project/issues?assignees=sumapriya&id=org.onap.dmaap.messagerouter.msgrtr%3Amsgrtr&open=AV4-VakK32hFUzlqc5wd&resolved=false&severities=MAJOR Location: src/main/java/com/att/dmf/mr/service/impl/BaseTransactionDbImpl.java Line No:L146 Change-Id: I0c11dcdb4a3a18fcd3f81777da9d950eeaa95ebd Issue-ID: DMAAP-818 Signed-off-by: Sumapriya Sarvepalli --- diff --git a/src/main/java/com/att/dmf/mr/service/impl/BaseTransactionDbImpl.java b/src/main/java/com/att/dmf/mr/service/impl/BaseTransactionDbImpl.java index a847f5f..104d7de 100644 --- a/src/main/java/com/att/dmf/mr/service/impl/BaseTransactionDbImpl.java +++ b/src/main/java/com/att/dmf/mr/service/impl/BaseTransactionDbImpl.java @@ -143,7 +143,7 @@ public class BaseTransactionDbImpl implements DMa * @throws ConfigDbException */ public synchronized Set loadAllTransactionObjs() throws ConfigDbException { - final TreeSet result = new TreeSet(); + final TreeSet result = new TreeSet<>(); for (ConfigPath cp : fDb.loadChildrenNames(fBasePath)) { result.add(cp.getName()); }