>   +  
>   +  public boolean equals(Object rObject) {
>   +     
>   +     if(!(rObject instanceof LoggingEvent)) {
>   +       return false;
>   +     }

<snip>

We can add this as the first line as an optimization:

if( this == rObject) {
  return true;
}

Also, will the hashCode based on the timestamp be enough to be
consistent with equals?

cheers,

Paul



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to