From: Driptaroop Das Date: Mon, 7 Jan 2019 07:06:22 +0000 (+0530) Subject: TopicService-replace type with diamonds X-Git-Tag: 1.0.26~60^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?p=dmaap%2Fdbcapi.git;a=commitdiff_plain;h=e7b9f6a8c2ad5b314aaae6051fb324c223fe0e89 TopicService-replace type with diamonds TopicService.java - Replace the type specification in this constructor call with the diamond operator ("<>"). Issue-ID: DMAAP-934 Change-Id: I74c83f83e75fb26ddd56f8df6a5a0ff572d6f74e Signed-off-by: Driptaroop Das --- diff --git a/src/main/java/org/onap/dmaap/dbcapi/service/TopicService.java b/src/main/java/org/onap/dmaap/dbcapi/service/TopicService.java index cfec54e..8ade70f 100644 --- a/src/main/java/org/onap/dmaap/dbcapi/service/TopicService.java +++ b/src/main/java/org/onap/dmaap/dbcapi/service/TopicService.java @@ -3,6 +3,8 @@ * org.onap.dmaap * ================================================================================ * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * + * Modifications Copyright (C) 2019 IBM. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -91,7 +93,7 @@ public class TopicService extends BaseLoggingClass { } private List getAllTopics( Boolean withClients ) { - ArrayList topics = new ArrayList(mr_topics.values()); + ArrayList topics = new ArrayList<>(mr_topics.values()); if ( withClients ) { for( Topic topic: topics ) { topic.setClients( clientService.getAllMrClients(topic.getFqtn()));