From 734822c1c296e2fd05f4be3b3750ee67f1d555bd Mon Sep 17 00:00:00 2001 From: Ray Greenwell Date: Tue, 10 Jan 2012 21:13:06 +0000 Subject: [PATCH] Fix deprecation warnings with Interval. git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@1112 c613c5cb-e716-0410-b11b-feb51c14d237 --- .../com/threerings/micasa/simulator/client/SimulatorApp.java | 2 +- src/main/java/com/threerings/parlor/util/RobotPlayer.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/threerings/micasa/simulator/client/SimulatorApp.java b/src/main/java/com/threerings/micasa/simulator/client/SimulatorApp.java index 56e6d154..a0efc634 100644 --- a/src/main/java/com/threerings/micasa/simulator/client/SimulatorApp.java +++ b/src/main/java/com/threerings/micasa/simulator/client/SimulatorApp.java @@ -158,7 +158,7 @@ public class SimulatorApp // wholly independent thread to wait for the server to be ready as // in normal circumstances they are entirely different processes; // so we just wait half a second which does the job - new Interval() { + new Interval(Interval.RUN_DIRECT) { @Override public void expired () { _client.getParlorContext().getClient().logon(); diff --git a/src/main/java/com/threerings/parlor/util/RobotPlayer.java b/src/main/java/com/threerings/parlor/util/RobotPlayer.java index b7e9a880..3b1a5a4c 100644 --- a/src/main/java/com/threerings/parlor/util/RobotPlayer.java +++ b/src/main/java/com/threerings/parlor/util/RobotPlayer.java @@ -52,6 +52,7 @@ public class RobotPlayer extends Interval */ public RobotPlayer (Component target, KeyTranslator xlate) { + super(Interval.RUN_DIRECT); // save off references _target = target; _xlate = xlate;