Skip to content

Commit

Permalink
And remove the last 1.5isms
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.codehaus.org/jruby/trunk/jruby@2523 961051c9-f516-0410-bf72-c9f7e237a7b7
  • Loading branch information
olabini committed Dec 1, 2006
1 parent 35fcfa1 commit 7be9195
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/org/jruby/runtime/ObjectSpace.java
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ private Long createId(IRubyObject object) {
public IRubyObject id2ref(long id) {
synchronized (identities) {
cleanIdentities();
IdReference reference = (IdReference) identities.get(Long.valueOf(id));
IdReference reference = (IdReference) identities.get(new Long(id));
if (reference == null)
return null;
return (IRubyObject) reference.get();
Expand All @@ -92,7 +92,7 @@ public IRubyObject id2ref(long id) {
private void cleanIdentities() {
IdReference ref;
while ((ref = (IdReference) deadIdentityReferences.poll()) != null)
identities.remove(Long.valueOf(ref.id()));
identities.remove(long Long(ref.id()));
}

public synchronized void add(IRubyObject object) {
Expand Down

0 comments on commit 7be9195

Please sign in to comment.