< prev index next >

src/com/sun/javatest/agent/ActiveAgentPool.java

Print this page
rev 145 : 7902237: Fixing raw use of parameterized class
Reviewed-by: jjg

@@ -322,12 +322,12 @@
     class Entries {
         synchronized boolean contains(Entry e) {
             return v.contains(e);
         }
 
-        synchronized Enumeration elements() {
-            return ((Vector)(v.clone())).elements();
+        synchronized Enumeration<Connection> elements() {
+            return ((Vector<Connection>)(v.clone())).elements();
         }
 
         synchronized void add(final Entry e) {
             v.addElement(e);
             notifyAddedToPool(e);

@@ -588,11 +588,11 @@
     }
 
     /**
      * Get an enumeration of the entries currently in the active agent pool.
      */
-    Enumeration elements() {
+    Enumeration<Connection> elements() {
         return entries.elements();
     }
 
     /**
      * Add an observer to monitor events.
< prev index next >