diff options
author | Manoop Talasila <talasila@research.att.com> | 2019-01-17 18:05:09 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-01-17 18:05:09 +0000 |
commit | f3dce06d5855e7e1227dde74dd0c0acf3b0d97c0 (patch) | |
tree | 47814ee9cc885fca1fa3122b2d9439c1bce03a5d /ecomp-sdk/epsdk-fw | |
parent | 33e660e21a7cce89210a318c4de80d1f8b4d5f5d (diff) | |
parent | b133ef89d21313447c20add7c4bb229981612a68 (diff) |
Merge "Fix blocker sonar issues"
Diffstat (limited to 'ecomp-sdk/epsdk-fw')
2 files changed, 11 insertions, 0 deletions
diff --git a/ecomp-sdk/epsdk-fw/src/main/java/org/onap/portalsdk/core/restful/domain/EcompUser.java b/ecomp-sdk/epsdk-fw/src/main/java/org/onap/portalsdk/core/restful/domain/EcompUser.java index 24e8731a..cac2fffa 100644 --- a/ecomp-sdk/epsdk-fw/src/main/java/org/onap/portalsdk/core/restful/domain/EcompUser.java +++ b/ecomp-sdk/epsdk-fw/src/main/java/org/onap/portalsdk/core/restful/domain/EcompUser.java @@ -37,6 +37,7 @@ */ package org.onap.portalsdk.core.restful.domain; +import java.util.Objects; import java.util.Set; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; @@ -222,4 +223,8 @@ public class EcompUser implements Comparable<EcompUser> { return this.loginId.equals(castOther.getLoginId()); } + @Override + public int hashCode() { + return Objects.hashCode(getLoginId()); + } } diff --git a/ecomp-sdk/epsdk-fw/src/main/java/org/onap/portalsdk/core/restful/domain/PortalTimeoutVO.java b/ecomp-sdk/epsdk-fw/src/main/java/org/onap/portalsdk/core/restful/domain/PortalTimeoutVO.java index 4ba41d6c..3d1b5ed5 100644 --- a/ecomp-sdk/epsdk-fw/src/main/java/org/onap/portalsdk/core/restful/domain/PortalTimeoutVO.java +++ b/ecomp-sdk/epsdk-fw/src/main/java/org/onap/portalsdk/core/restful/domain/PortalTimeoutVO.java @@ -37,6 +37,8 @@ */ package org.onap.portalsdk.core.restful.domain; +import java.util.Objects; + public class PortalTimeoutVO implements Comparable<PortalTimeoutVO> { private String jSessionId; @@ -84,4 +86,8 @@ public class PortalTimeoutVO implements Comparable<PortalTimeoutVO> { return this.getSessionTimOutMilliSec() == castOther.getSessionTimOutMilliSec(); } + @Override + public int hashCode() { + return Objects.hashCode(getSessionTimOutMilliSec()); + } } |