From 5b5fddfb50191ba284feeb7e08b262f3c4c57db1 Mon Sep 17 00:00:00 2001 From: Ray Greenwell Date: Thu, 13 Jul 2006 18:08:42 +0000 Subject: [PATCH] A bit of type safety. git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@20 c613c5cb-e716-0410-b11b-feb51c14d237 --- .../com/threerings/whirled/spot/data/SpotSceneImpl.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/java/com/threerings/whirled/spot/data/SpotSceneImpl.java b/src/java/com/threerings/whirled/spot/data/SpotSceneImpl.java index 8820c274..eab7bb87 100644 --- a/src/java/com/threerings/whirled/spot/data/SpotSceneImpl.java +++ b/src/java/com/threerings/whirled/spot/data/SpotSceneImpl.java @@ -66,7 +66,7 @@ public class SpotSceneImpl if (portalId == -1) { portalId = _smodel.defaultEntranceId; } - return (Portal)_portals.get(portalId); + return _portals.get(portalId); } // documentation inherited from interface @@ -76,7 +76,7 @@ public class SpotSceneImpl } // documentation inherited from interface - public Iterator getPortals () + public Iterator getPortals () { return _portals.values().iterator(); } @@ -152,7 +152,7 @@ public class SpotSceneImpl protected SpotSceneModel _smodel; /** A mapping from portal id to portal. */ - protected HashIntMap _portals = new HashIntMap(); + protected HashIntMap _portals = new HashIntMap(); /** We don't allow more than ~32k portals in a scene. Things would * slow down *way* before we got there. */