diff options
Diffstat (limited to 'libjava/java/util/TimerTask.java')
-rw-r--r-- | libjava/java/util/TimerTask.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libjava/java/util/TimerTask.java b/libjava/java/util/TimerTask.java index cb841e5ea73..1b32b67f62c 100644 --- a/libjava/java/util/TimerTask.java +++ b/libjava/java/util/TimerTask.java @@ -44,11 +44,11 @@ package java.util; * it should have been scheduled and cancel itself when no longer needed. * <p> * Example: - * <code> + * <pre> * Timer timer = new Timer(); * TimerTask task = new TimerTask() { * public void run() { - * if (this.scheduledExecutionTime() < System.currentTimeMillis() + 500) + * if (this.scheduledExecutionTime() < System.currentTimeMillis() + 500) * // Do something * else * // Complain: We are more then half a second late! @@ -56,7 +56,7 @@ package java.util; * this.cancel(); // This was our last execution * }; * timer.scheduleAtFixedRate(task, 1000, 1000); // schedule every second - * </code> + * </pre> * <p> * Note that a TimerTask object is a one shot object and can only given once * to a Timer. (The Timer will use the TimerTask object for bookkeeping, |