From 8ed87e2493fc517daa9255f73b13b14faa48b20f Mon Sep 17 00:00:00 2001 From: Lizi Date: Tue, 6 Feb 2018 07:26:40 +0000 Subject: 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 --- esr-mgr/src/main/java/org/onap/aai/esr/util/EmsManagerUtil.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'esr-mgr/src') 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); } } -- cgit 1.2.3-korg