Skip to content

Commit 6018e1c

Browse files
committed
gave Keywords non-identity hashCodes
1 parent ab4068e commit 6018e1c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/jvm/clojure/lang/Keyword.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ private Keyword(Symbol sym){
3434
this.sym = sym;
3535
}
3636

37+
public int hashCode(){
38+
return sym.hashCode() + 0x9e3779b9;
39+
}
40+
3741
public String toString(){
3842
return ":" + sym;
3943
}

0 commit comments

Comments
 (0)