Sonar major issues 15/68615/1
authorSumapriya Sarvepalli <ss00493505@techmahindra.com>
Mon, 24 Sep 2018 07:01:59 +0000 (12:31 +0530)
committerSumapriya Sarvepalli <ss00493505@techmahindra.com>
Mon, 24 Sep 2018 07:01:59 +0000 (12:31 +0530)
 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 <ss00493505@techmahindra.com>
src/main/java/com/att/dmf/mr/service/impl/BaseTransactionDbImpl.java

index a847f5f..104d7de 100644 (file)
@@ -143,7 +143,7 @@ public class BaseTransactionDbImpl<K extends DMaaPTransactionObj> implements DMa
         * @throws ConfigDbException
         */
        public synchronized Set<String> loadAllTransactionObjs() throws ConfigDbException {
-               final TreeSet<String> result = new TreeSet<String>();
+               final TreeSet<String> result = new TreeSet<>();
                for (ConfigPath cp : fDb.loadChildrenNames(fBasePath)) {
                        result.add(cp.getName());
                }