From dce305ad0ac98f5a4ae7ad4367b0c5bb66388640 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Tue, 15 Sep 2009 04:53:18 +0000 Subject: [PATCH] More Galileo hygiene. git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@879 c613c5cb-e716-0410-b11b-feb51c14d237 --- .../com/threerings/parlor/tourney/data/Participant.java | 6 ++++++ .../com/threerings/stage/tools/editor/TileInfoPanel.java | 7 +++++++ 2 files changed, 13 insertions(+) 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. */