public void exit(Object monitor){
  if (monitor == null) {
    throw new NullPointerException();
  }
  ListIterator it=monitors.listIterator(monitors.size());
  while (it.hasPrevious()) {
    Object prev=it.previous();
    if (monitor == prev) {
      it.remove();
      return;
    }
  }
  throw new IllegalArgumentException();
}

public void exit ( Object monitor ) { if ( monitor == null ) { throw new NullPointerException ( ) ; } ListIterator it = monitors . listIterator ( monitors . size ( ) ) ; while ( it . hasPrevious ( ) ) { Object prev = it . previous ( ) ; if ( monitor == prev ) { it . remove ( ) ; return ; } } throw new IllegalArgumentException ( ) ; }
do not use - - for internal use only . < p > should be called after a monitorexit instruction has been executed . untracks the object that monitorexit was used on .
