Fix the java code style issue.
[aai/esr-server.git] / esr-mgr / src / main / java / org / onap / aai / esr / util / ExtsysUtil.java
index 834c9d5..3bd0177 100644 (file)
 package org.onap.aai.esr.util;
 
 import com.google.gson.Gson;
-
 import java.util.ArrayList;
+import java.util.List;
 import java.util.UUID;
 import org.onap.aai.esr.entity.aai.EsrSystemInfo;
 import org.onap.aai.esr.entity.aai.EsrSystemInfoList;
 
 public class ExtsysUtil {
 
-  public String generateId() {
-    return UUID.randomUUID().toString();
-  }
+    public String generateId() {
+        return UUID.randomUUID().toString();
+    }
 
-  /**
-   * change object to str.
-   */
-  public String objectToString(Object obj) {
-    Gson gson = new Gson();
-    if (obj != null) {
-      return gson.toJson(obj);
-    } else {
-      return null;
+    /**
+     * change object to str.
+     */
+    public String objectToString(Object obj) {
+        Gson gson = new Gson();
+        if (obj != null) {
+            return gson.toJson(obj);
+        } else {
+            return null;
+        }
     }
-  }
 
-  public EsrSystemInfoList getEsrSystemInfoListFromAuthInfo(EsrSystemInfo esrSystemInfoObj) {
-    EsrSystemInfoList esrSystemInfoList = new EsrSystemInfoList();
-    ArrayList<EsrSystemInfo> esrSystemInfo = new ArrayList<EsrSystemInfo>();
-    esrSystemInfo.add(esrSystemInfoObj);
-    esrSystemInfoList.setEsrSystemInfo(esrSystemInfo);
-    return esrSystemInfoList;
-  }
-  
-  public EsrSystemInfoList getEsrSystemInfoListFromAuthInfoList(ArrayList<EsrSystemInfo> esrSystemInfo) {
-    EsrSystemInfoList esrSystemInfoList = new EsrSystemInfoList();
-    esrSystemInfoList.setEsrSystemInfo(esrSystemInfo);;
-    return esrSystemInfoList;
-  }
+    public EsrSystemInfoList getEsrSystemInfoListFromAuthInfo(EsrSystemInfo esrSystemInfoObj) {
+        EsrSystemInfoList esrSystemInfoList = new EsrSystemInfoList();
+        List<EsrSystemInfo> esrSystemInfo = new ArrayList<>();
+        esrSystemInfo.add(esrSystemInfoObj);
+        esrSystemInfoList.setEsrSystemInfo(esrSystemInfo);
+        return esrSystemInfoList;
+    }
+
+    public EsrSystemInfoList getEsrSystemInfoListFromAuthInfoList(List<EsrSystemInfo> esrSystemInfo) {
+        EsrSystemInfoList esrSystemInfoList = new EsrSystemInfoList();
+        esrSystemInfoList.setEsrSystemInfo(esrSystemInfo);;
+        return esrSystemInfoList;
+    }
 }