From 34ae8910d7020b46606579e4f7e07cdb2d8206e5 Mon Sep 17 00:00:00 2001 From: Dave Hoover Date: Thu, 27 Nov 2008 00:30:48 +0000 Subject: [PATCH] Widen & break one thing out so I can avoid copy & paste when I format a very similar message in the yohoho reboot manager. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5570 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- .../presents/server/RebootManager.java | 62 +++++++++---------- 1 file changed, 31 insertions(+), 31 deletions(-) diff --git a/src/java/com/threerings/presents/server/RebootManager.java b/src/java/com/threerings/presents/server/RebootManager.java index 478b99f56..7878d4cd2 100644 --- a/src/java/com/threerings/presents/server/RebootManager.java +++ b/src/java/com/threerings/presents/server/RebootManager.java @@ -43,21 +43,17 @@ import static com.threerings.presents.Log.log; public abstract class RebootManager { /** - * An interface for receiving notifications about pending automated - * shutdowns. + * An interface for receiving notifications about pending automated shutdowns. */ public static interface PendingShutdownObserver { /** - * Called prior to an automated shutdown. NOTE that the shutdown - * is not guaranteed to happen, this interface is merely for - * notification purposes. + * Called prior to an automated shutdown. NOTE that the shutdown is not guaranteed to + * happen, this interface is merely for notification purposes. * - * @param warningsLeft The number of warnings left prior to the - * shutdown. This value will be 0 on the last warning, usually 1-2 - * minutes prior to the actual shutdown. - * @param msLeft the approximate number of milliseconds left prior to - * the shutdown. + * @param warningsLeft The number of warnings left prior to the shutdown. This value will + * be 0 on the last warning, usually 1-2 minutes prior to the actual shutdown. + * @param msLeft the approximate number of milliseconds left prior to the shutdown. */ void shutdownPlanned (int warningsLeft, long msLeft); } @@ -162,8 +158,7 @@ public abstract class RebootManager public int preventReboot (String whereFrom) { if (whereFrom == null) { - throw new IllegalArgumentException( - "whereFrom must be descriptive."); + throw new IllegalArgumentException("whereFrom must be descriptive."); } int lockId = _nextRebootLockId++; _rebootLocks.put(lockId, whereFrom); @@ -176,8 +171,7 @@ public abstract class RebootManager public void allowReboot (int lockId) { if (null == _rebootLocks.remove(lockId)) { - throw new IllegalArgumentException( - "no such lockId (" + lockId + ")"); + throw new IllegalArgumentException("no such lockId (" + lockId + ")"); } } @@ -191,8 +185,7 @@ public abstract class RebootManager } /** - * Broadcasts a message to everyone on the server. The following - * messages will be broadcast: + * Broadcasts a message to everyone on the server. The following messages will be broadcast: *