CogComp / lbjava

Learning Based Java (LBJava)
http://cogcomp.cs.illinois.edu/page/software_view/LBJava
Other
13 stars 17 forks source link

Lexicon equality #98

Open cowchipkid opened 7 years ago

cowchipkid commented 7 years ago

When the hashCode function of two Comparable objects yield the same value, they should also compare to equals. This is in the Java spec. In the case of the Lexicon class, this is not so.