summaryrefslogtreecommitdiffstats
path: root/esr-mgr
diff options
context:
space:
mode:
authorLizi <li.zi30@zte.com.cn>2018-02-06 07:26:40 +0000
committerLizi <li.zi30@zte.com.cn>2018-02-06 07:26:50 +0000
commit8ed87e2493fc517daa9255f73b13b14faa48b20f (patch)
tree14498d1ae09ee36d9dedd6b1d8fdb568f9503a5a /esr-mgr
parentdf3d2cc8479e289cd0c0461075f54fb02acf2ce0 (diff)
Remove the unused variable
Fix sonar issue https://sonar.onap.org/component_issues?id=org.onap.aai.esr-server%3Aaai-esr-server#severities=MAJOR|resolved=false Change-Id: I07cb02bfad47e245e0a76030524a1db15948eb2a Issue-ID: AAI-734 Signed-off-by: Lizi <li.zi30@zte.com.cn>
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);
}
}