summaryrefslogtreecommitdiffstats
path: root/esr-mgr
diff options
context:
space:
mode:
Diffstat (limited to 'esr-mgr')
-rw-r--r--esr-mgr/src/main/java/org/onap/aai/esr/util/EmsManagerUtil.java9
1 files changed, 3 insertions, 6 deletions
diff --git a/esr-mgr/src/main/java/org/onap/aai/esr/util/EmsManagerUtil.java b/esr-mgr/src/main/java/org/onap/aai/esr/util/EmsManagerUtil.java
index 4b6aca4..13e400a 100644
--- a/esr-mgr/src/main/java/org/onap/aai/esr/util/EmsManagerUtil.java
+++ b/esr-mgr/src/main/java/org/onap/aai/esr/util/EmsManagerUtil.java
@@ -94,16 +94,13 @@ public class EmsManagerUtil {
for (int i = 0; i < esrSystemInfo.size(); i++) {
authInfo = esrSystemInfo.get(i);
if (authInfo.getSystemType().equals(SystemType.EMS_RESOUCE.toString())) {
- FtpAddr resourceAddr = new FtpAddr();
- resourceAddr = getFtpAddrFromAuthInfo(authInfo);
+ FtpAddr resourceAddr = getFtpAddrFromAuthInfo(authInfo);
emsRegisterInfo.setResourceAddr(resourceAddr);
} else if (authInfo.getSystemType().equals(SystemType.EMS_PERFORMANCE.toString())) {
- FtpAddr performanceAddr = new FtpAddr();
- performanceAddr = getFtpAddrFromAuthInfo(authInfo);
+ FtpAddr performanceAddr = getFtpAddrFromAuthInfo(authInfo);
emsRegisterInfo.setPerformanceAddr(performanceAddr);
} else if (authInfo.getSystemType().equals(SystemType.EMS_ALARM.toString())) {
- AlarmAddr alarmAddr = new AlarmAddr();
- alarmAddr = getAlarmAddrFromAuthInfo(authInfo);
+ AlarmAddr alarmAddr = getAlarmAddrFromAuthInfo(authInfo);
emsRegisterInfo.setAlarmAddr(alarmAddr);
}
}