diff --git a/src/java/com/threerings/parlor/tourney/data/Participant.java b/src/java/com/threerings/parlor/tourney/data/Participant.java index 15100963..ea0faa58 100644 --- a/src/java/com/threerings/parlor/tourney/data/Participant.java +++ b/src/java/com/threerings/parlor/tourney/data/Participant.java @@ -57,6 +57,12 @@ public class Participant extends SimpleStreamableObject return false; } + @Override + public int hashCode () + { + return username.hashCode(); + } + @Override public String toString () { diff --git a/src/java/com/threerings/stage/tools/editor/TileInfoPanel.java b/src/java/com/threerings/stage/tools/editor/TileInfoPanel.java index 2f566add..c011404f 100644 --- a/src/java/com/threerings/stage/tools/editor/TileInfoPanel.java +++ b/src/java/com/threerings/stage/tools/editor/TileInfoPanel.java @@ -56,6 +56,7 @@ import javax.swing.tree.DefaultTreeModel; import javax.swing.tree.TreePath; import javax.swing.tree.TreeSelectionModel; +import com.google.common.base.Objects; import com.google.common.collect.Lists; import com.google.common.collect.Maps; @@ -691,6 +692,12 @@ public class TileInfoPanel extends JSplitPane } return false; } + + @Override + public int hashCode () + { + return Objects.hashCode(layer, tileSetId); + } } /** Default desired panel dimensions. */