«« Next » « Previous
«« Next » « Previous

Link Details

Announcement

iPhone DZone: Fresh Links On Your iPhone by matt at Sat Jul 05 14:09:51 EDT 2008

Reading DZone on your iPhone just got a little bit easier. Visit http://dzone.com/iphone from your iPhone to try out our beta iPhone support. You can view stories, filter by tags, and login. We'd appreciate your feedback at feedback@dzone.com.

Excuses, excuses, excuses... Login and vote now.
Link 58599 thumbnail

By ivan_memruk
via thewrongcode.blogspot.com
Published: Dec 28 2007 / 23:13

A review of a very common but very wrong approach to writing the first line of your equals() implementation..
  • 8
  • 4
  • 1422
  • 400

Comments

Add your comment
User 160542 avatar

Kirill Grouchnikov replied ago:

1 votes Vote down Vote up Reply

Correct link is http://thewrongcode.blogspot.com/2007/12/equalsinstanceof-pitfall.html

Don't link to the entire blog

User 263699 avatar

ivan_memruk replied ago:

0 votes Vote down Vote up Reply

Yeah Kirill I did fix the link but somehow dzone still shows it the incorrect way that I first entered it :(
Did you read the post?

User 236137 avatar

dzonelurker replied ago:

0 votes Vote down Vote up Reply
User 263699 avatar

ivan_memruk replied ago:

0 votes Vote down Vote up Reply

thanks dzonelurker
the article you've given the link for sorta addresses the issue
however the code of the examples given there is really horrible, lots of redundant if-checks and returns
anyway, it is better to do it this way than the semantically incorrect way

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (8)



Voters Against This Link (4)