diff options
author | Mark Wielaard <mark@klomp.org> | 2002-05-26 10:59:30 +0000 |
---|---|---|
committer | Mark Wielaard <mark@klomp.org> | 2002-05-26 10:59:30 +0000 |
commit | 26bda294221221b092b64d6a01b036d0b33764fe (patch) | |
tree | 4ea55dd8b697bff58486f5da178a26f62eb8333f /java/util/TimerTask.java | |
parent | ce49f022d0f7f781bfaa452fadba40bb33f02921 (diff) | |
download | classpath-26bda294221221b092b64d6a01b036d0b33764fe.tar.gz |
* java/util/TimerTask.java: Fix javadoc code example.
Diffstat (limited to 'java/util/TimerTask.java')
-rw-r--r-- | java/util/TimerTask.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/java/util/TimerTask.java b/java/util/TimerTask.java index cb841e5ea..1b32b67f6 100644 --- a/java/util/TimerTask.java +++ b/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, |