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:
@@ -56,7 +56,7 @@ public class NodeObject extends DObject
|
|||||||
|
|
||||||
/** Identifies a locked resource. */
|
/** Identifies a locked resource. */
|
||||||
public static class Lock extends SimpleStreamableObject
|
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. */
|
/** The resource type. Only resources of the same type will have their ids compared. */
|
||||||
public String type;
|
public String type;
|
||||||
@@ -75,9 +75,8 @@ public class NodeObject extends DObject
|
|||||||
}
|
}
|
||||||
|
|
||||||
// documentation inherited from interface Comparable
|
// 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);
|
int v1 = type.compareTo(olock.type);
|
||||||
if (v1 != 0 || id == null) {
|
if (v1 != 0 || id == null) {
|
||||||
return v1;
|
return v1;
|
||||||
|
|||||||
Reference in New Issue
Block a user