aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorvarun gudisena <varuneshwar.gudisena@att.com>2019-01-22 18:55:50 +0000
committerGerrit Code Review <gerrit@onap.org>2019-01-22 18:55:50 +0000
commitc07e0dc46ad232c8cd86f19b4aaaab0ef9db409f (patch)
treec82d2e16801d7021bd3a90b814c1b3b7d540f66a /src
parentb2668789b9e7af9a40c234a4dcbbb7a14df97627 (diff)
parente7b9f6a8c2ad5b314aaae6051fb324c223fe0e89 (diff)
Merge "TopicService-replace type with diamonds"
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/onap/dmaap/dbcapi/service/TopicService.java4
1 files changed, 3 insertions, 1 deletions
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<Topic> getAllTopics( Boolean withClients ) {
- ArrayList<Topic> topics = new ArrayList<Topic>(mr_topics.values());
+ ArrayList<Topic> topics = new ArrayList<>(mr_topics.values());
if ( withClients ) {
for( Topic topic: topics ) {
topic.setClients( clientService.getAllMrClients(topic.getFqtn()));