commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 30855] - [lang] Additional constructor for EqualsBuilder and isEquals member access.
Date Sat, 16 Oct 2004 17:27:52 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30855>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30855

[lang] Additional constructor for EqualsBuilder and isEquals member access.

scolebourne@joda.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX



------- Additional Comments From scolebourne@joda.org  2004-10-16 17:27 -------
I was going to add this in, but then I considered whether it was really useful. 
The reality is that it is better for the caller to write:

 if (this == other) {
   return true;
 }
 return new EqualsBuilder().append(.......

than to always use the EqualsBuilder:

 return new EqualsBuilder(this, other).append(......

(which involves much more processing)

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message