Nix need for cast.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4766 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2007-07-16 22:13:59 +00:00
parent 4667d37212
commit c27356b4c3
@@ -56,7 +56,7 @@ public class NodeObject extends DObject
/** Identifies a locked resource. */
public static class Lock extends SimpleStreamableObject
implements Comparable, DSet.Entry
implements Comparable<Lock>, DSet.Entry
{
/** The resource type. Only resources of the same type will have their ids compared. */
public String type;
@@ -75,9 +75,8 @@ public class NodeObject extends DObject
}
// documentation inherited from interface Comparable
public int compareTo (Object other)
public int compareTo (Lock olock)
{
Lock olock = (Lock)other;
int v1 = type.compareTo(olock.type);
if (v1 != 0 || id == null) {
return v1;