Whitespace

git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@928 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
Dave Hoover
2010-06-15 17:27:35 +00:00
parent f6cbcc2642
commit e686402a46
@@ -44,8 +44,7 @@ import com.threerings.whirled.zone.util.ZoneUtil;
import static com.threerings.whirled.zone.Log.log; import static com.threerings.whirled.zone.Log.log;
/** /**
* The zone registry takes care of mapping zone requests to the appropriate registered zone * The zone registry takes care of mapping zone requests to the appropriate registered zone manager.
* manager.
*/ */
@Singleton @Singleton
public class ZoneRegistry public class ZoneRegistry
@@ -69,8 +68,8 @@ public class ZoneRegistry
{ {
ZoneManager old = _managers.get(zoneType); ZoneManager old = _managers.get(zoneType);
if (old != null) { if (old != null) {
log.warning("Zone manager already registered with requested type [type=" + zoneType + log.warning("Zone manager already registered with requested type",
", old=" + old + ", new=" + manager + "]."); "type", zoneType, "old", old, "new", manager);
} else { } else {
_managers.put(zoneType, manager); _managers.put(zoneType, manager);
} }
@@ -88,11 +87,11 @@ public class ZoneRegistry
/** /**
* Ejects the specified body from their current scene and sends them a request to move to the * Ejects the specified body from their current scene and sends them a request to move to the
* specified new zone and scene. This is the zone-equivalent to {@link * specified new zone and scene. This is the zone-equivalent to
* LocationProvider#moveTo}. * {@link LocationProvider#moveTo}.
* *
* @return null if the user was forcibly moved, or a string indicating the reason for denial of * @return null if the user was forcibly moved, or a string indicating the reason for denial
* departure of their current zone (from {@link ZoneManager#ratifyBodyExit}). * of departure of their current zone (from {@link ZoneManager#ratifyBodyExit}).
*/ */
public String moveBody (ZonedBodyObject source, int zoneId, int sceneId) public String moveBody (ZonedBodyObject source, int zoneId, int sceneId)
{ {
@@ -146,8 +145,8 @@ public class ZoneRegistry
throws InvocationException throws InvocationException
{ {
if (!(caller instanceof ZonedBodyObject)) { if (!(caller instanceof ZonedBodyObject)) {
log.warning("Request to switch zones by non-ZonedBodyObject " + log.warning("Request to switch zones by non-ZonedBodyObject",
"[clobj=" + caller.getClass() + "]."); "clobj", caller.getClass());
throw new InvocationException(ZoneCodes.INTERNAL_ERROR); throw new InvocationException(ZoneCodes.INTERNAL_ERROR);
} }
@@ -165,8 +164,8 @@ public class ZoneRegistry
// look up the zone manager for the zone // look up the zone manager for the zone
ZoneManager zmgr = getZoneManager(zoneId); ZoneManager zmgr = getZoneManager(zoneId);
if (zmgr == null) { if (zmgr == null) {
log.warning("Requested to enter a zone for which we have no manager " + log.warning("Requested to enter a zone for which we have no manager",
"[user=" + body.who() + ", zoneId=" + zoneId + "]."); "user", body.who(), "zoneId", zoneId);
throw new InvocationException(ZoneCodes.NO_SUCH_ZONE); throw new InvocationException(ZoneCodes.NO_SUCH_ZONE);
} }