diff options
author | Parshad Patel <pars.patel@samsung.com> | 2018-11-06 15:03:57 +0900 |
---|---|---|
committer | Parshad Patel <pars.patel@samsung.com> | 2018-11-06 15:07:35 +0900 |
commit | 34c0439254b1822d77d3c520cb98b1ececded13a (patch) | |
tree | e35288d033698030d2188f597993d0a255910477 /ecomp-sdk/epsdk-core/src/main/java | |
parent | 97e29f1fe153f283133c560642a9c5fca16c87a0 (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>
Diffstat (limited to 'ecomp-sdk/epsdk-core/src/main/java')
-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); } |