void writeToLog(NumberedObject numObj) { synchronized (log) {
synchronized void writeToLog(NumberedObject numObj) { synchronized (consumers) { if (consumers.size() > 0) { Iterator it = consumers.iterator(); while (it.hasNext()) { Consumer c = (Consumer)it.next(); c.consume(numObj); } } } if (logName != null) {
    void writeToLog(NumberedObject numObj) {      synchronized (log) {	try {	  log.writeObject(numObj);	}	catch (IOException ioe) {	  logFailure("putObject: error writing " + numObj + " to log file! (" +		     ioe + ")");	}	numObjectsProcessed++;	numObjectsProcessedThisRun++;      }    }