< prev index next >

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

Print this page

    *** 352,362 ****
              }

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

              synchronized Entry next() {
                  Entry e = null;
                  if (v.size() > 0) {
    !                 e = v.elementAt(0);
                      v.removeElementAt(0);
                      notifyRemovedFromPool(e);
                  }
                  return e;
              }
    *** 393,403 ****
                  for (int i = 0; i < observers.length; i++) {
                      observers[i].removedFromPool(e);
                  }
              }

    !         private Vector v = new Vector();
              private Observer[] observers = new Observer[0];
          }

          /**
           * Listen for requests from active agents. Active agents announce their
    --- 393,403 ----
                  for (int i = 0; i < observers.length; i++) {
                      observers[i].removedFromPool(e);
                  }
              }

    !         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 >