X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fonap%2Fdmaap%2Fdbcapi%2Fservice%2FTopicService.java;fp=src%2Fmain%2Fjava%2Forg%2Fonap%2Fdmaap%2Fdbcapi%2Fservice%2FTopicService.java;h=8ade70f2a3caf6a96ba03f132f7647dd25333c0e;hb=e7b9f6a8c2ad5b314aaae6051fb324c223fe0e89;hp=cfec54e4e410678d1cb5931b5687cb6be5d87063;hpb=536c6aabdfd2bcdc493501a9498fb8a97d208c0b;p=dmaap%2Fdbcapi.git 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()));