< prev index next >

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

Print this page

    @@ -352,11 +352,11 @@
             }

             synchronized Entry next() {
                 Entry e = null;
                 if (v.size() > 0) {
    -                e = (Entry)(v.elementAt(0));
    +                e = v.elementAt(0);
                     v.removeElementAt(0);
                     notifyRemovedFromPool(e);
                 }
                 return e;
             }

    @@ -393,11 +393,11 @@
                 for (int i = 0; i < observers.length; i++) {
                     observers[i].removedFromPool(e);
                 }
             }

    -        private Vector v = new Vector();
    +        private Vector<Entry> v = new Vector<>();
             private Observer[] observers = new Observer[0];
         }

         /**
          * Listen for requests from active agents. Active agents announce their

< prev index next >