]> source.dussan.org Git - aspectj.git/commitdiff
replacing 1.2 Vector API's with equivalent 1.1 API's to make telecom testable under 1.1
authorwisberg <wisberg>
Mon, 30 Jun 2003 22:43:38 +0000 (22:43 +0000)
committerwisberg <wisberg>
Mon, 30 Jun 2003 22:43:38 +0000 (22:43 +0000)
docs/dist/doc/examples/telecom/Call.java

index 738d2d3480481bf07be4e4d479989aeb03c6fbbf..3d3489e8612464b8f3c93de9ccc336e08a9d13c9 100644 (file)
@@ -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);
        }
     }