This is an automated email from the ASF dual-hosted git repository. jking pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/thrift.git
commit 6b6a8279aba29a67f005f5e498e88519cdb85049 Author: Garret Wilson <gar...@globalmentor.com> AuthorDate: Fri May 3 13:12:16 2019 -0700 THRIFT-4857: Made Java TField class hash code consistent with equals. Client: java --- lib/java/src/org/apache/thrift/protocol/TField.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/java/src/org/apache/thrift/protocol/TField.java b/lib/java/src/org/apache/thrift/protocol/TField.java index 31331bb..3872b00 100644 --- a/lib/java/src/org/apache/thrift/protocol/TField.java +++ b/lib/java/src/org/apache/thrift/protocol/TField.java @@ -21,7 +21,7 @@ package org.apache.thrift.protocol; /** * Helper class that encapsulates field metadata. - * + * <p>Two fields are considered equal if they have the same type and id.</p> */ public class TField { public TField() { @@ -47,7 +47,6 @@ public class TField { final int prime = 31; int result = 1; result = prime * result + id; - result = prime * result + ((name == null) ? 0 : name.hashCode()); result = prime * result + type; return result; }