summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorParshad Patel <pars.patel@samsung.com>2018-11-06 15:03:57 +0900
committerParshad Patel <pars.patel@samsung.com>2018-11-06 15:07:35 +0900
commit34c0439254b1822d77d3c520cb98b1ececded13a (patch)
treee35288d033698030d2188f597993d0a255910477
parent97e29f1fe153f283133c560642a9c5fca16c87a0 (diff)
Fix sonar issue in epsdk-core
Fix this class overrides "equals()" and should therefore also override "hashCode()" sonar issue in TimeoutVO.java Issue-ID: PORTAL-342 Change-Id: I1422069ffb610491b7313a8056478e0dc3054c7a Signed-off-by: Parshad Patel <pars.patel@samsung.com>
-rw-r--r--ecomp-sdk/epsdk-core/src/main/java/org/onap/portalsdk/core/domain/sessionmgt/TimeoutVO.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/ecomp-sdk/epsdk-core/src/main/java/org/onap/portalsdk/core/domain/sessionmgt/TimeoutVO.java b/ecomp-sdk/epsdk-core/src/main/java/org/onap/portalsdk/core/domain/sessionmgt/TimeoutVO.java
index 777f502f..9d7621d6 100644
--- a/ecomp-sdk/epsdk-core/src/main/java/org/onap/portalsdk/core/domain/sessionmgt/TimeoutVO.java
+++ b/ecomp-sdk/epsdk-core/src/main/java/org/onap/portalsdk/core/domain/sessionmgt/TimeoutVO.java
@@ -37,6 +37,8 @@
*/
package org.onap.portalsdk.core.domain.sessionmgt;
+import org.apache.wicket.util.lang.Objects;
+
public class TimeoutVO implements Comparable<TimeoutVO> {
private String jSessionId;
@@ -81,6 +83,11 @@ public class TimeoutVO implements Comparable<TimeoutVO> {
}
@Override
+ public int hashCode() {
+ return Objects.hashCode(getSessionTimOutMilliSec());
+ }
+
+ @Override
public int compareTo(TimeoutVO o) {
return sessionTimOutMilliSec.compareTo(o.sessionTimOutMilliSec);
}