equals and hashCode should be overridden in pairs 76/109276/2
authorTaka Cho <takamune.cho@att.com>
Wed, 17 Jun 2020 20:41:57 +0000 (16:41 -0400)
committerTaka Cho <takamune.cho@att.com>
Thu, 18 Jun 2020 13:31:58 +0000 (09:31 -0400)
commit21577893cd846442cf8832fdd0ff3d7d7db3e23b
tree17d2a97014aee72d1b3be40204bf76b7ed70933c
parent1fdba85a145be36060262d4575995a7752d7a396
equals and hashCode should be overridden in pairs

hashCode should be overridden in pairs.
followed by Effective Java:

You must override hashCode() in every class that
overrides equals(). Failure to do so will result
in a violation of the general contract for
Object.hashCode(), which will prevent your class from
functioning properly in conjunction with all
hash-based collections, including HashMap, HashSet, and Hashtable.

Issue-ID: POLICY-2616
Change-Id: I2b29722daab5c520547397aae68d8ebaa71b2c4b
Signed-off-by: Taka Cho <takamune.cho@att.com>
feature-server-pool/src/main/java/org/onap/policy/drools/serverpool/TargetLock.java