summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Hickey <richhickey@gmail.com>2006-05-31 14:23:01 +0000
committerRich Hickey <richhickey@gmail.com>2006-05-31 14:23:01 +0000
commit06bfce30df5fb0967138b19b46d9c435ff780a5e (patch)
tree536e32dce5920b33ddf63134c378e57460f72ef6
parent47bbbed7f23af23aa41e727c0909cdad09dbf4d6 (diff)
leveraged auto-boxing
-rw-r--r--src/org/clojure/runtime/Symbol.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/org/clojure/runtime/Symbol.java b/src/org/clojure/runtime/Symbol.java
index 84e41138..5d5b3a54 100644
--- a/src/org/clojure/runtime/Symbol.java
+++ b/src/org/clojure/runtime/Symbol.java
@@ -65,10 +65,10 @@ Symbol(String name)
{
while (hash == 0)
{
- Integer h = new Integer(rand.nextInt());
- if (h.intValue() != 0 && !hashes.contains(h))
+ int h = rand.nextInt();
+ if (h != 0 && !hashes.contains(h))
{
- hash = h.intValue();
+ hash = h;
hashes.add(h);
}
}