From 603599544c1720e796dc622c98e5ca0fd22b8e17 Mon Sep 17 00:00:00 2001
From: jestin
Date: Tue, 7 Jan 2003 17:13:08 +0000
Subject: Adaptés à une plus vieille JDK
---
examples/Counter.java | 16 +++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)
(limited to 'examples/Counter.java')
diff --git a/examples/Counter.java b/examples/Counter.java
index a1dffd1..34ae576 100644
--- a/examples/Counter.java
+++ b/examples/Counter.java
@@ -1,20 +1,25 @@
/**
- * Yet another Ivy java program example
+ * Counter:Yet another Ivy java program example.
+ *
+ * @author Yannick Jestin
+ * @author http://www.tls.cena.fr/products/ivy/
*
* a software bus message "geiger counter" displaying each and every second
* the number of messages sent on the bus during the past second, the past ten
* seconds and the past minute.
*
- * @author Yannick Jestin
- * @author http://www.tls.cena.fr/products/ivy/
- *
* (c) CENA 1998-2003
* This program is provided as is, under the LGPL licence with the ivy-java
* package.
*
+ * New:
+ * 1.2.3: use of Vector.addElement instead of add() and the old Properties
+ * model
+ *
*/
import fr.dgac.ivy.* ;
import gnu.getopt.Getopt ;
+import java.util.*;
/**
* A program to count to the Ivy software bus messages.
@@ -92,7 +97,8 @@ public class Counter implements IvyMessageListener, Runnable {
domain=opt.getOptarg();
break;
case 'd':
- System.setProperty("IVY_DEBUG","yesla!");
+ Properties sysProp = System.getProperties();
+ sysProp.put("IVY_DEBUG","yes");
break;
case 'h':
default:
--
cgit v1.1