diff options
author | Rich Hickey <richhickey@gmail.com> | 2008-06-24 12:34:30 +0000 |
---|---|---|
committer | Rich Hickey <richhickey@gmail.com> | 2008-06-24 12:34:30 +0000 |
commit | ddf92b9b840ccaae9ba9dca9fd24175a865857cc (patch) | |
tree | 4b74183b09d06c31b067606073fbe37fd5f5ce60 | |
parent | 6991ddb4c6c61c94f1eccd5ca42c9c0143fce910 (diff) |
got rid of deep equals on vals
-rw-r--r-- | src/jvm/clojure/lang/PersistentHashMap.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jvm/clojure/lang/PersistentHashMap.java b/src/jvm/clojure/lang/PersistentHashMap.java index 49530586..db304a0f 100644 --- a/src/jvm/clojure/lang/PersistentHashMap.java +++ b/src/jvm/clojure/lang/PersistentHashMap.java @@ -504,7 +504,7 @@ final static class LeafNode extends AMapEntry implements INode{ { if(Util.equal(key, this.key)) { - if(Util.equal(val, this.val)) + if(val == this.val) return this; //note - do not set addedLeaf, since we are replacing return new LeafNode(hash, key, val); @@ -574,7 +574,7 @@ final static class HashCollisionNode implements INode{ int idx = findIndex(hash, key); if(idx != -1) { - if(Util.equal(leaves[idx].val, val)) + if(leaves[idx].val == val) return this; LeafNode[] newLeaves = leaves.clone(); //note - do not set addedLeaf, since we are replacing |