All pastes #18974 Raw Edit

Untitled

public text v1 · immutable
#18974 ·published 2005-08-01 08:50 UTC
rendered paste body
                if (this.addresses.containsKey(otherKey)) {
                    if (!this.addresses.get(otherKey).equals(otherValue)
                            && !overwrite
                            && log != null) {
                        log.append("Conflict for " + otherKey + " from "
                                + other.location
                                + ". Destination in remote address book is "
                                + otherValue);
                    }
                } 
                else
                {
                        this.addresses.put(otherKey, otherValue);
                        this.modified = true;
                        if (log != null) {
                            log.append("New address " + otherKey
                                + " added to address book.");
                        }
                    }  
                }