This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-jcs.git
The following commit(s) were added to refs/heads/master by this push: new 2df162f Use Objects.hash(). 2df162f is described below commit 2df162f55e68f4f2930aebd5c067bdaca55d0685 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Fri Nov 20 16:45:21 2020 -0500 Use Objects.hash(). --- .../org/apache/commons/jcs3/utils/discovery/DiscoveredService.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/commons-jcs-core/src/main/java/org/apache/commons/jcs3/utils/discovery/DiscoveredService.java b/commons-jcs-core/src/main/java/org/apache/commons/jcs3/utils/discovery/DiscoveredService.java index eefbc9e..50f26a0 100644 --- a/commons-jcs-core/src/main/java/org/apache/commons/jcs3/utils/discovery/DiscoveredService.java +++ b/commons-jcs-core/src/main/java/org/apache/commons/jcs3/utils/discovery/DiscoveredService.java @@ -115,12 +115,7 @@ public class DiscoveredService @Override public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result - + ((serviceAddress == null) ? 0 : serviceAddress.hashCode()); - result = prime * result + servicePort; - return result; + return Objects.hash(serviceAddress, servicePort); } /**