fixed major sonar isue in CreatNetworkNotification 85/64385/1
authorSandeep J <sandeejh@in.ibm.com>
Tue, 4 Sep 2018 09:59:13 +0000 (15:29 +0530)
committerSandeep J <sandeejh@in.ibm.com>
Tue, 4 Sep 2018 09:59:21 +0000 (15:29 +0530)
fixed major sonar issue as detailed in SO-968

Issue-ID: SO-968
Change-Id: Ib1b846a262e0426db3a0c16b28881befb22d7a52
Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
adapters/mso-openstack-adapters/src/main/java/org/onap/so/adapters/network/async/client/CreateNetworkNotification.java

index 8135088..fcce165 100644 (file)
@@ -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
@@ -346,7 +348,7 @@ public class CreateNetworkNotification {
          */
         public List<CreateNetworkNotification.SubnetIdMap.Entry> getEntry() {
             if (entry == null) {
-                entry = new ArrayList<CreateNetworkNotification.SubnetIdMap.Entry>();
+                entry = new ArrayList<>();
             }
             return this.entry;
         }