fixed sonar issue in NetworkRollback.java 47/64247/1
authorSandeep J <sandeejh@in.ibm.com>
Mon, 3 Sep 2018 13:17:52 +0000 (18:47 +0530)
committerSandeep J <sandeejh@in.ibm.com>
Mon, 3 Sep 2018 13:18:10 +0000 (18:48 +0530)
fixed sonar issue as detailed in SO-954

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

index 4fde850..e7ace11 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
@@ -362,7 +364,7 @@ public class NetworkRollback {
      */
     public List<Integer> getVlans() {
         if (vlans == null) {
-            vlans = new ArrayList<Integer>();
+            vlans = new ArrayList<>();
         }
         return this.vlans;
     }