aboutsummaryrefslogtreecommitdiffstats
path: root/adapters/mso-openstack-adapters
diff options
context:
space:
mode:
authorSandeep J <sandeejh@in.ibm.com>2018-09-04 15:36:03 +0530
committerSandeep J <sandeejh@in.ibm.com>2018-09-04 15:36:09 +0530
commit4bd4a8cccdb0faeb1b6bca471b44bafea6ae9842 (patch)
treeb0e7632e87228006d5264f46b9c08bbdfe7bb046 /adapters/mso-openstack-adapters
parentb1c2cbe73420cbb62f643488422f174fe3311b1c (diff)
fixed sonar major isue in QueryNetworkNotification
fixed sonar major issue as detailed in SO-969 Issue-ID: SO-969 Change-Id: Ifdd59b780db24fa1e06181495dbc10e4bb1c6b6c Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
Diffstat (limited to 'adapters/mso-openstack-adapters')
-rw-r--r--adapters/mso-openstack-adapters/src/main/java/org/onap/so/adapters/network/async/client/QueryNetworkNotification.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/adapters/mso-openstack-adapters/src/main/java/org/onap/so/adapters/network/async/client/QueryNetworkNotification.java b/adapters/mso-openstack-adapters/src/main/java/org/onap/so/adapters/network/async/client/QueryNetworkNotification.java
index 55a8e3d0d1..87aa2183f1 100644
--- a/adapters/mso-openstack-adapters/src/main/java/org/onap/so/adapters/network/async/client/QueryNetworkNotification.java
+++ b/adapters/mso-openstack-adapters/src/main/java/org/onap/so/adapters/network/async/client/QueryNetworkNotification.java
@@ -4,6 +4,8 @@
* ================================================================================
* Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
* ================================================================================
+ * Modifications Copyright (C) 2018 IBM.
+ * ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
@@ -314,7 +316,7 @@ public class QueryNetworkNotification {
*/
public List<Integer> getVlans() {
if (vlans == null) {
- vlans = new ArrayList<Integer>();
+ vlans = new ArrayList<>();
}
return this.vlans;
}
@@ -406,7 +408,7 @@ public class QueryNetworkNotification {
*/
public List<QueryNetworkNotification.SubnetIdMap.Entry> getEntry() {
if (entry == null) {
- entry = new ArrayList<QueryNetworkNotification.SubnetIdMap.Entry>();
+ entry = new ArrayList<>();
}
return this.entry;
}