summaryrefslogtreecommitdiffstats
path: root/ecomp-sdk
diff options
context:
space:
mode:
authorManoop Talasila <talasila@research.att.com>2018-11-07 15:36:58 +0000
committerGerrit Code Review <gerrit@onap.org>2018-11-07 15:36:58 +0000
commitc5e700adad49baa7e29adec3ef4ecea0034f93d7 (patch)
tree3506f176b429cbbbd98bc0a388d1ff527463a407 /ecomp-sdk
parent78ad4ce883b8685f6248d4da832faa1c400666ff (diff)
parent34c0439254b1822d77d3c520cb98b1ececded13a (diff)
Merge "Fix sonar issue in epsdk-core"
Diffstat (limited to 'ecomp-sdk')
-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);
}