Add in @Overrides across the board, clean up the comments around them some, and remove
unneeded imports. I've got partially completed patches for narya & vilya, too, but nenya was the only one that wound up in a decent state after a friday evening puttering at it, killing time waiting on other things to finish. git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@572 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
@@ -45,6 +45,7 @@ public class Tile // implements Cloneable
|
||||
this.zations = zations;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals (Object other) {
|
||||
if (other instanceof Key) {
|
||||
Key okey = (Key)other;
|
||||
@@ -56,6 +57,7 @@ public class Tile // implements Cloneable
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode () {
|
||||
int code = (tileSet == null) ? tileIndex :
|
||||
(tileSet.hashCode() ^ tileIndex);
|
||||
@@ -140,9 +142,7 @@ public class Tile // implements Cloneable
|
||||
// }
|
||||
// }
|
||||
|
||||
/**
|
||||
* Return a string representation of this tile.
|
||||
*/
|
||||
@Override
|
||||
public String toString ()
|
||||
{
|
||||
StringBuilder buf = new StringBuilder("[");
|
||||
@@ -162,6 +162,7 @@ public class Tile // implements Cloneable
|
||||
}
|
||||
|
||||
/** Decrement total tile memory by our value. */
|
||||
@Override
|
||||
protected void finalize ()
|
||||
{
|
||||
if (_mirage != null) {
|
||||
|
||||
Reference in New Issue
Block a user