diff options
author | Manoop Talasila <talasila@research.att.com> | 2018-11-07 15:36:58 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-11-07 15:36:58 +0000 |
commit | c5e700adad49baa7e29adec3ef4ecea0034f93d7 (patch) | |
tree | 3506f176b429cbbbd98bc0a388d1ff527463a407 | |
parent | 78ad4ce883b8685f6248d4da832faa1c400666ff (diff) | |
parent | 34c0439254b1822d77d3c520cb98b1ececded13a (diff) |
Merge "Fix sonar issue in epsdk-core"
-rw-r--r-- | ecomp-sdk/epsdk-core/src/main/java/org/onap/portalsdk/core/domain/sessionmgt/TimeoutVO.java | 7 |
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); } |