From 5690d15d5fc2484c787a9a05ebc3f1a45d8e6eca Mon Sep 17 00:00:00 2001 From: jestin Date: Tue, 7 Jan 2003 17:13:27 +0000 Subject: Ancienne API --- tests/BugTok.java | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'tests/BugTok.java') diff --git a/tests/BugTok.java b/tests/BugTok.java index c5bc445..004ac8b 100644 --- a/tests/BugTok.java +++ b/tests/BugTok.java @@ -1,3 +1,14 @@ +/** + * BugTok. + * + * @author Yannick Jestin + * + * (c) CENA + * + * 1.2.3: + * - replace Vector.add by Vector.addElement() to maintain jdk1.1 + * compatibility + */ import java.util.Vector ; class BugTok { @@ -7,10 +18,10 @@ class BugTok { if (length!=0) while (true) { index=s.indexOf(sep,last); if (index==-1) { - v.add(s.substring(last,length)); + v.addElement(s.substring(last,length)); break; } else if (index