From b1ae92881174608e7f3fb6033a7cc72111f83661 Mon Sep 17 00:00:00 2001 From: Ray Greenwell Date: Mon, 28 Aug 2006 22:30:46 +0000 Subject: [PATCH] Added a note explaining the difference between an ideal implementation and the one we have now. git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@67 c613c5cb-e716-0410-b11b-feb51c14d237 --- src/java/com/threerings/ezgame/client/EZGamePanel.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/java/com/threerings/ezgame/client/EZGamePanel.java b/src/java/com/threerings/ezgame/client/EZGamePanel.java index d4852bca..bf814655 100644 --- a/src/java/com/threerings/ezgame/client/EZGamePanel.java +++ b/src/java/com/threerings/ezgame/client/EZGamePanel.java @@ -102,6 +102,8 @@ public class EZGamePanel extends JPanel public void apply (Component comp) { if (comp instanceof Game) { // only notify the Game if we haven't seen it before + // TODO: what we really want is a weak identity map, + // so that two keys that are equals() do not collide. if (null == _seenGames.put(comp, Boolean.TRUE)) { ((Game) comp).setGameObject(_ctrl.gameObjImpl); }