fixed sonar issues in AAFResonse.java 47/74247/1
authorSandeep J <sandeejh@in.ibm.com>
Wed, 5 Dec 2018 10:16:46 +0000 (15:46 +0530)
committerSandeep J <sandeejh@in.ibm.com>
Wed, 5 Dec 2018 10:16:56 +0000 (15:46 +0530)
changed return type to "List" rather than the implementation "ArrayList"

Issue-ID: MUSIC-182
Change-Id: I1c75a5aaa7401a1a02c3680304924fe459c13aa6
Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
src/main/java/org/onap/music/datastore/jsonobjects/AAFResponse.java

index df6089e..b0f4131 100644 (file)
@@ -2,7 +2,9 @@
  * ============LICENSE_START==========================================
  * org.onap.music
  * ===================================================================
- *  Copyright (c) 2017 AT&T Intellectual Property
+ * Copyright (c) 2017 AT&T Intellectual Property
+ * ===================================================================
+ * 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.
  */
 package org.onap.music.datastore.jsonobjects;
 
-import java.util.ArrayList;
+import java.util.List;
+
 import io.swagger.annotations.ApiModel;
 import io.swagger.annotations.ApiModelProperty;
 
 @ApiModel(value = "JsonTable", description = "Reponse class for AAF request")
 public class AAFResponse {
 
-    private ArrayList<NameSpace> ns = null;
+    private List<NameSpace> ns = null;
 
     @ApiModelProperty(value = "Namespace value")
-    public ArrayList<NameSpace> getNs() {
+    public List<NameSpace> getNs() {
         return ns;
     }
 
-    public void setNs(ArrayList<NameSpace> ns) {
+    public void setNs(List<NameSpace> ns) {
         this.ns = ns;
     }