Fix This class overrides "equals()" and should therefore also override "hashCode()" issues
Issue-ID: PORTAL-342
Change-Id: Iabc3d51abbe6af595252791f38e9a639e850d2c4
Signed-off-by: Parshad Patel <pars.patel@samsung.com>
*/
package org.onap.portalsdk.core.restful.domain;
+import java.util.Objects;
import java.util.Set;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
return this.loginId.equals(castOther.getLoginId());
}
+ @Override
+ public int hashCode() {
+ return Objects.hashCode(getLoginId());
+ }
}
*/
package org.onap.portalsdk.core.restful.domain;
+import java.util.Objects;
+
public class PortalTimeoutVO implements Comparable<PortalTimeoutVO> {
private String jSessionId;
return this.getSessionTimOutMilliSec() == castOther.getSessionTimOutMilliSec();
}
+ @Override
+ public int hashCode() {
+ return Objects.hashCode(getSessionTimOutMilliSec());
+ }
}