< 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,333 **** class Entries { synchronized boolean contains(Entry e) { return v.contains(e); } ! synchronized Enumeration elements() { ! return ((Vector)(v.clone())).elements(); } synchronized void add(final Entry e) { v.addElement(e); notifyAddedToPool(e); --- 322,333 ---- class Entries { synchronized boolean contains(Entry e) { return v.contains(e); } ! synchronized Enumeration<Connection> elements() { ! return ((Vector<Connection>)(v.clone())).elements(); } synchronized void add(final Entry e) { v.addElement(e); notifyAddedToPool(e);
*** 588,598 **** } /** * Get an enumeration of the entries currently in the active agent pool. */ ! Enumeration elements() { return entries.elements(); } /** * Add an observer to monitor events. --- 588,598 ---- } /** * Get an enumeration of the entries currently in the active agent pool. */ ! Enumeration<Connection> elements() { return entries.elements(); } /** * Add an observer to monitor events.
< prev index next >