From 2e3c9191a9cb753ff54cf20592dcd0ef14bfc83a Mon Sep 17 00:00:00 2001 From: wisberg Date: Mon, 30 Jun 2003 22:43:38 +0000 Subject: [PATCH] replacing 1.2 Vector API's with equivalent 1.1 API's to make telecom testable under 1.1 --- docs/dist/doc/examples/telecom/Call.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/dist/doc/examples/telecom/Call.java b/docs/dist/doc/examples/telecom/Call.java index 738d2d348..3d3489e86 100644 --- a/docs/dist/doc/examples/telecom/Call.java +++ b/docs/dist/doc/examples/telecom/Call.java @@ -42,7 +42,7 @@ public class Call { } else { c = new LongDistance(caller, receiver); } - connections.add(c); + connections.addElement(c); } /** @@ -90,7 +90,7 @@ public class Call { public void merge(Call other){ for(Enumeration e = other.connections.elements(); e.hasMoreElements();){ Connection conn = (Connection)e.nextElement(); - other.connections.remove(conn); + other.connections.removeElement(conn); connections.addElement(conn); } } -- 2.39.5