public boolean remove(URI uri,HttpCookie ck){
  if (ck == null) {
    throw new NullPointerException("cookie is null");
  }
  boolean modified=false;
  lock.lock();
  try {
    modified=cookieJar.remove(ck);
  }
  finally {
    lock.unlock();
  }
  return modified;
}

public boolean remove ( URI uri , HttpCookie ck ) { if ( ck == null ) { throw new NullPointerException ( "cookie is null" ) ; } boolean modified = false ; lock . lock ( ) ; try { modified = cookieJar . remove ( ck ) ; } finally { lock . unlock ( ) ; } return modified ; }
remove a cookie from store
